Space Engineers
|
Public Member Functions | |
MyVideoPlayer (string filename) | |
override void | Dispose () |
Cleans up the Video Player. Must be called when finished with the player. More... | |
Public Member Functions inherited from DShowNET.VideoPlayer | |
void | Update () |
Updates the Output Frame data using data from the video stream. Call this in Game.Update(). More... | |
void | Play () |
Starts playing the video More... | |
void | Pause () |
Pauses the video More... | |
void | Stop () |
Stops playing the video More... | |
void | Rewind () |
Rewinds the video to the start and plays it again More... | |
int | BufferCB (double SampleTime, IntPtr pBuffer, int BufferLen) |
Required public callback from DirectShow SampleGrabber. Do not call this method. More... | |
int | SampleCB (double SampleTime, IMediaSample pSample) |
Required public callback from DirectShow SampleGrabber. Do not call this method. More... | |
Protected Member Functions | |
override unsafe void | OnFrame (byte[] frameData) |
Protected Member Functions inherited from DShowNET.VideoPlayer | |
VideoPlayer (string FileName) | |
Creates a new Video Player. Automatically creates the required Texture2D on the specificied GraphicsDevice. More... | |
Additional Inherited Members | |
Properties inherited from DShowNET.VideoPlayer | |
int | VideoWidth [get] |
Width of the loaded video More... | |
int | VideoHeight [get] |
Height of the loaded video More... | |
double | CurrentPosition [get, set] |
Gets or Sets the current position of playback in seconds More... | |
string | CurrentPositionAsTimeString [get] |
Returns the current position of playback, formatted as a time string (HH:MM:SS) More... | |
double | Duration [get] |
Total duration in seconds More... | |
string | DurationAsTimeString [get] |
Returns the duration of the video, formatted as a time string (HH:MM:SS) More... | |
string | FileName [get] |
Currently Loaded Video File More... | |
VideoState | CurrentState [get, set] |
Gets or Sets the current state of the video player More... | |
bool | IsDisposed [get] |
Is Disposed? More... | |
int | FramesPerSecond [get] |
Number of Frames Per Second in the video file. Returns -1 if this cannot be calculated. More... | |
float | MillisecondsPerFrame [get] |
The number of milliseconds between each frame Returns -1 if this cannot be calculated More... | |
byte | AlphaTransparency [get, set] |
Gets or sets how transparent the video frame is. Takes effect on the next frame after this is updated Max Value: 255 - Opaque Min Value: 0 - Transparent More... | |
float | Volume [get, set] |
Definition at line 174 of file MyVideoPlayer.cs.
|
inline |
Definition at line 180 of file MyVideoPlayer.cs.
|
inlinevirtual |
Cleans up the Video Player. Must be called when finished with the player.
Reimplemented from DShowNET.VideoPlayer.
Definition at line 205 of file MyVideoPlayer.cs.
|
inlineprotectedvirtual |
Implements DShowNET.VideoPlayer.
Definition at line 189 of file MyVideoPlayer.cs.