C# Class Fusion.Engine.Media.VideoPlayer

Inheritance: System.DisposableBase
显示文件 Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
GetTexture ( ) : DynamicTexture

Retrieves a Texture2D containing the current frame of video being played.

Pause ( ) : void

Pauses the currently playing video.

Play ( Video video ) : void

Plays a Video.

Resume ( ) : void

Resumes a paused video.

Stop ( ) : void

Stops playing a video.

VideoPlayer ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
OnTopologyReady ( ) : void

PlatformDispose ( bool disposing ) : void

PlatformGetPlayPosition ( ) : System.TimeSpan

PlatformGetState ( MediaState &result ) : void

PlatformGetTexture ( ) : DynamicTexture

PlatformInitialize ( ) : void

PlatformPause ( ) : void

PlatformPlay ( ) : void

PlatformResume ( ) : void

PlatformSetIsLooped ( ) : void

PlatformSetIsMuted ( ) : void

PlatformSetVolume ( ) : void

PlatformStop ( ) : void

SetChannelVolumes ( ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetTexture() public method

Retrieves a Texture2D containing the current frame of video being played.
Thrown if no video is set on the player Thrown if the platform was unable to get a texture in a reasonable amount of time. Often the platform specific media code is running /// in a different thread or process. Note: This may be a change from XNA behaviour
public GetTexture ( ) : DynamicTexture
return DynamicTexture

Pause() public method

Pauses the currently playing video.
public Pause ( ) : void
return void

Play() public method

Plays a Video.
public Play ( Video video ) : void
video Video Video to play.
return void

Resume() public method

Resumes a paused video.
public Resume ( ) : void
return void

Stop() public method

Stops playing a video.
public Stop ( ) : void
return void

VideoPlayer() public method

public VideoPlayer ( ) : System
return System