Video IsPlaying Method Delta Engine Documentation

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

public abstract bool IsPlaying()

Return Value

Type: Boolean
Remarks

Tests: DeltaEngine.Multimedia.Tests.VideoTests
Examples

2 unit tests call DeltaEngine.Multimedia.Video.IsPlaying
[Test]
public void PlayAndStop()
{
    testVideo.Stop();
    Assert.IsFalse(testVideo.IsPlaying());
    testVideo.Play();
    Assert.IsTrue(testVideo.IsPlaying());
}
[Test]
public void PlayVideoWhileOtherIsPlaying()
{
    var otherTestVideo = ContentLoader.Load<Video>("DefaultVideo");
    testVideo.Play();
    Assert.False(MockVideo.VideoStopCalled);
    otherTestVideo.Play();
    Assert.False(MockVideo.VideoStopCalled);
}
See Also