VideoTests PlayVideo Method Delta Engine Documentation

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

public void PlayVideo()
Examples

[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 PlayVideoWhileOtherIsPlaying()
{
    var otherTestVideo = ContentLoader.Load<Video>("DefaultVideo");
    testVideo.Play();
    Assert.False(MockVideo.VideoStopCalled);
    otherTestVideo.Play();
    Assert.False(MockVideo.VideoStopCalled);
}
See Also