Commit ab75bc3a authored by Filippo Carone's avatar Filippo Carone

jvlc: test to check audio mute on 2 different instances

parent c6c3b26a
......@@ -72,5 +72,21 @@ public class JVLCTest extends AbstractJVLCTest
}
@Test
public void twoAudioInstancesTest() throws Exception
{
JVLC instance1 = new JVLC();
JVLC instance2 = new JVLC();
instance1.play(mrl);
instance2.play(mrl);
Thread.sleep(1000);
instance1.getAudio().setMute(true);
Assert.assertNotNull(instance2.getAudio());
Assert.assertTrue(instance1.getAudio().getMute());
Assert.assertTrue(!instance2.getAudio().getMute());
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment