Class VideoStreamPlayer
- Namespace
- Forma
- Assembly
- Forma.Media.dll
XNA-compatible VideoPlayer-backed UI control for video streams.
public sealed class VideoStreamPlayer : Control, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
VideoStreamPlayer
- Implements
- Inherited Members
Constructors
VideoStreamPlayer()
public VideoStreamPlayer()
VideoStreamPlayer(IVideoPlaybackBackend)
public VideoStreamPlayer(IVideoPlaybackBackend backend)
Parameters
backendIVideoPlaybackBackend
Properties
AudioTrack
public int AudioTrack { get; set; }
Property Value
Autoplay
public bool Autoplay { get; set; }
Property Value
BufferingMsec
public int BufferingMsec { get; set; }
Property Value
Bus
public string Bus { get; set; }
Property Value
Expand
public bool Expand { get; set; }
Property Value
IsPlaybackAvailable
public bool IsPlaybackAvailable { get; }
Property Value
Loop
public bool Loop { get; set; }
Property Value
Paused
public bool Paused { get; set; }
Property Value
PlaybackState
public MediaState PlaybackState { get; }
Property Value
- MediaState
PlaybackUnavailableReason
public string PlaybackUnavailableReason { get; }
Property Value
RuntimeCapabilities
public static VideoPlaybackCapabilities RuntimeCapabilities { get; }
Property Value
SpeedScale
public float SpeedScale { get; set; }
Property Value
Stream
public Video Stream { get; set; }
Property Value
- Video
Volume
public float Volume { get; set; }
Property Value
Methods
Dispose()
public void Dispose()
GetAudioTrack()
public int GetAudioTrack()
Returns
GetBufferingMsec()
public int GetBufferingMsec()
Returns
GetBus()
public string GetBus()
Returns
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
GetSpeedScale()
public float GetSpeedScale()
Returns
GetStream()
public Video GetStream()
Returns
- Video
GetStreamLength()
public double GetStreamLength()
Returns
GetStreamName()
public string GetStreamName()
Returns
GetStreamPosition()
public double GetStreamPosition()
Returns
GetVideoTexture()
public Texture2D GetVideoTexture()
Returns
- Texture2D
GetVolume()
public float GetVolume()
Returns
GetVolumeDb()
public float GetVolumeDb()
Returns
HasAutoplay()
public bool HasAutoplay()
Returns
HasExpand()
public bool HasExpand()
Returns
HasLoop()
public bool HasLoop()
Returns
IsPaused()
public bool IsPaused()
Returns
IsPlaying()
public bool IsPlaying()
Returns
LoadLocalFile(string, GraphicsDevice)
public static Video LoadLocalFile(string path, GraphicsDevice graphicsDevice)
Parameters
pathstringgraphicsDeviceGraphicsDevice
Returns
- Video
Play()
public void Play()
SetAudioTrack(int)
public void SetAudioTrack(int track)
Parameters
trackint
SetAutoplay(bool)
public void SetAutoplay(bool enabled)
Parameters
enabledbool
SetBufferingMsec(int)
public void SetBufferingMsec(int msec)
Parameters
msecint
SetBus(string)
public void SetBus(string bus)
Parameters
busstring
SetExpand(bool)
public void SetExpand(bool enable)
Parameters
enablebool
SetLoop(bool)
public void SetLoop(bool loop)
Parameters
loopbool
SetPaused(bool)
public void SetPaused(bool paused)
Parameters
pausedbool
SetSpeedScale(float)
public void SetSpeedScale(float speedScale)
Parameters
speedScalefloat
SetStream(Video)
public void SetStream(Video stream)
Parameters
streamVideo
SetStreamPosition(double)
public void SetStreamPosition(double position)
Parameters
positiondouble
SetVolume(float)
public void SetVolume(float volume)
Parameters
volumefloat
SetVolumeDb(float)
public void SetVolumeDb(float db)
Parameters
dbfloat
Stop()
public void Stop()
Events
Finished
public event EventHandler Finished