Interface IVideoPlayer
Interface for video player.
Inherited Members
Namespace: Evergine.Common.Media
Assembly: Evergine.Common.dll
Syntax
public interface IVideoPlayer : IDisposable
Properties
IsLooped
Gets or sets a value indicating whether the player is playing a video in a loop.
Declaration
bool IsLooped { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsMuted
Gets or sets a value indicating whether the muted setting for the video player.
Declaration
bool IsMuted { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsVideoSupported
Gets a value indicating whether if Video texture is supported on this device.
Declaration
bool IsVideoSupported { get; }
Property Value
Type | Description |
---|---|
bool |
PlayPosition
Gets or sets a value indicating whether the play position within the currently playing video.
Declaration
TimeSpan PlayPosition { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
State
Gets the state.
Declaration
VideoState State { get; }
Property Value
Type | Description |
---|---|
VideoState |
Video
Gets the video that is currently playing.
Declaration
IVideoInfo Video { get; }
Property Value
Type | Description |
---|---|
IVideoInfo |
VideoTexture
Gets a Texture containing the frame of video being played;.
Declaration
Texture VideoTexture { get; }
Property Value
Type | Description |
---|---|
Texture |
Volume
Gets or sets a value indicating the video player volume.
Declaration
float Volume { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
Pause()
Pauses the currently playing video.
Declaration
void Pause()
Play(IVideoInfo)
Plays the video.
Declaration
void Play(IVideoInfo video)
Parameters
Type | Name | Description |
---|---|---|
IVideoInfo | video | video info instance. |
Resume()
Resumes a paused video.
Declaration
void Resume()
Stop()
Stops playing a video.
Declaration
void Stop()
Update(TimeSpan)
Update video player.
Declaration
void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | game time. |
VideoInfoFromPath(string)
Get video info from path.
Declaration
IVideoInfo VideoInfoFromPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | video path. |
Returns
Type | Description |
---|---|
IVideoInfo | platform specific video info. |
Events
OnComplete
Event fired when the video play is completed
Declaration
event EventHandler OnComplete
Event Type
Type | Description |
---|---|
EventHandler |
OnError
Event fired when the video play has an error
Declaration
event EventHandler OnError
Event Type
Type | Description |
---|---|
EventHandler |
OnVideoTexture
Event fired when the video texture is updated
Declaration
event EventHandler OnVideoTexture
Event Type
Type | Description |
---|---|
EventHandler |