Provides a way to load and play a video file.
View code on GitHub
Inheritance Hierarchy
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
The Video type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Video | Initializes a new instance of the Video class |
Methods
Name | Description | |
---|---|---|
CreateDefault | (Inherited from ContentData.) | |
Dispose | (Inherited from ContentData.) | |
DisposeData | (Overrides ContentData DisposeData .) | |
InternalCreateDefault | (Inherited from ContentData.) | |
IsPlaying | ||
LoadData | (Inherited from ContentData.) | |
Play | ||
PlayNativeVideo | ||
Stop | ||
StopNativeVideo | ||
ToString | (Inherited from ContentData.) | |
Update |
Fields
Name | Description | |
---|---|---|
ContentChanged | (Inherited from ContentData.) | |
device |
Properties
Name | Description | |
---|---|---|
AllowCreationIfContentNotFound | (Overrides ContentData AllowCreationIfContentNotFound.) | |
DurationInSeconds | ||
IsDisposed | (Inherited from ContentData.) | |
MetaData | (Inherited from ContentData.) | |
Name | (Inherited from ContentData.) | |
PositionInSeconds |
Remarks
Examples
[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