Video Play Method Delta Engine Documentation

Namespace: DeltaEngine.Multimedia
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Play(
	float volume = 1f
)
Remarks

Tests: DeltaEngine.Multimedia.Tests.VideoTests
Examples

6 unit tests call DeltaEngine.Multimedia.Video.Play(System.Single)
[Test]
public void PlayVideo()
{
    testVideo.Play();
}
[Test]
public void PlayVideoOnClick()
{
    new FontText(Font.Default, "Click to Play", Rectangle.One);
    new Command(() => { testVideo.Play(); }).Add(new MouseButtonTrigger());
}
[Test]
public void PlayAndStop()
{
    testVideo.Stop();
    Assert.IsFalse(testVideo.IsPlaying());
    testVideo.Play();
    Assert.IsTrue(testVideo.IsPlaying());
}
See Also