Video ClassDelta Engine Documentation
Provides a way to load and play a video file. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Content ContentData
    DeltaEngine.Multimedia Video
      DeltaEngine.Multimedia.BaseOpenAL OpenALVideo
      DeltaEngine.Multimedia.Mocks MockVideo
      DeltaEngine.Multimedia.SharpDX SharpDXVideo
      DeltaEngine.Multimedia.SlimDX SlimDXVideo
      DeltaEngine.Multimedia.Xna XnaVideo

Namespace: DeltaEngine.Multimedia
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public abstract class Video : ContentData, 
	Updateable

The Video type exposes the following members.

Constructors

  NameDescription
Protected methodVideo
Initializes a new instance of the Video class
Top
Methods

  NameDescription
Protected methodCreateDefault (Inherited from ContentData.)
Public methodDispose (Inherited from ContentData.)
Protected methodDisposeData (Overrides ContentData DisposeData .)
Public methodInternalCreateDefault (Inherited from ContentData.)
Public methodIsPlaying
Protected methodLoadData (Inherited from ContentData.)
Public methodPlay
Protected methodPlayNativeVideo
Public methodStop
Protected methodStopNativeVideo
Public methodToString (Inherited from ContentData.)
Public methodUpdate
Top
Fields

  NameDescription
Protected fieldContentChanged (Inherited from ContentData.)
Protected fielddevice
Top
Properties

  NameDescription
Protected propertyAllowCreationIfContentNotFound (Overrides ContentData AllowCreationIfContentNotFound.)
Public propertyDurationInSeconds
Public propertyIsDisposed (Inherited from ContentData.)
Public propertyMetaData (Inherited from ContentData.)
Public propertyName (Inherited from ContentData.)
Public propertyPositionInSeconds
Top
Remarks

Tests: DeltaEngine.Multimedia.Tests.VideoTests
Examples

8 unit tests call DeltaEngine.Multimedia.Video
[Test]
public void ExpectExceptionIfVideoIsNotAvailable()
{
    Assert.Throws<Video.VideoNotFoundOrAccessible>(
        () => ContentLoader.Load<Video>("NonExistingVideo"));
}
[Test]
public void PlayVideo()
{
    testVideo.Play();
}
[Test]
public void PlayVideoOnClick()
{
    new FontText(Font.Default, "Click to Play", Rectangle.One);
    new Command(() => { testVideo.Play(); }).Add(new MouseButtonTrigger());
}
See Also