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

backend IVideoPlaybackBackend

Properties

AudioTrack

public int AudioTrack { get; set; }

Property Value

int

Autoplay

public bool Autoplay { get; set; }

Property Value

bool

BufferingMsec

public int BufferingMsec { get; set; }

Property Value

int

Bus

public string Bus { get; set; }

Property Value

string

Expand

public bool Expand { get; set; }

Property Value

bool

IsPlaybackAvailable

public bool IsPlaybackAvailable { get; }

Property Value

bool

Loop

public bool Loop { get; set; }

Property Value

bool

Paused

public bool Paused { get; set; }

Property Value

bool

PlaybackState

public MediaState PlaybackState { get; }

Property Value

MediaState

PlaybackUnavailableReason

public string PlaybackUnavailableReason { get; }

Property Value

string

RuntimeCapabilities

public static VideoPlaybackCapabilities RuntimeCapabilities { get; }

Property Value

VideoPlaybackCapabilities

SpeedScale

public float SpeedScale { get; set; }

Property Value

float

Stream

public Video Stream { get; set; }

Property Value

Video

Volume

public float Volume { get; set; }

Property Value

float

Methods

Dispose()

public void Dispose()

GetAudioTrack()

public int GetAudioTrack()

Returns

int

GetBufferingMsec()

public int GetBufferingMsec()

Returns

int

GetBus()

public string GetBus()

Returns

string

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2

GetSpeedScale()

public float GetSpeedScale()

Returns

float

GetStream()

public Video GetStream()

Returns

Video

GetStreamLength()

public double GetStreamLength()

Returns

double

GetStreamName()

public string GetStreamName()

Returns

string

GetStreamPosition()

public double GetStreamPosition()

Returns

double

GetVideoTexture()

public Texture2D GetVideoTexture()

Returns

Texture2D

GetVolume()

public float GetVolume()

Returns

float

GetVolumeDb()

public float GetVolumeDb()

Returns

float

HasAutoplay()

public bool HasAutoplay()

Returns

bool

HasExpand()

public bool HasExpand()

Returns

bool

HasLoop()

public bool HasLoop()

Returns

bool

IsPaused()

public bool IsPaused()

Returns

bool

IsPlaying()

public bool IsPlaying()

Returns

bool

LoadLocalFile(string, GraphicsDevice)

public static Video LoadLocalFile(string path, GraphicsDevice graphicsDevice)

Parameters

path string
graphicsDevice GraphicsDevice

Returns

Video

Play()

public void Play()

SetAudioTrack(int)

public void SetAudioTrack(int track)

Parameters

track int

SetAutoplay(bool)

public void SetAutoplay(bool enabled)

Parameters

enabled bool

SetBufferingMsec(int)

public void SetBufferingMsec(int msec)

Parameters

msec int

SetBus(string)

public void SetBus(string bus)

Parameters

bus string

SetExpand(bool)

public void SetExpand(bool enable)

Parameters

enable bool

SetLoop(bool)

public void SetLoop(bool loop)

Parameters

loop bool

SetPaused(bool)

public void SetPaused(bool paused)

Parameters

paused bool

SetSpeedScale(float)

public void SetSpeedScale(float speedScale)

Parameters

speedScale float

SetStream(Video)

public void SetStream(Video stream)

Parameters

stream Video

SetStreamPosition(double)

public void SetStreamPosition(double position)

Parameters

position double

SetVolume(float)

public void SetVolume(float volume)

Parameters

volume float

SetVolumeDb(float)

public void SetVolumeDb(float db)

Parameters

db float

Stop()

public void Stop()

Events

Finished

public event EventHandler Finished

Event Type

EventHandler