]> git.sesse.net Git - vlc/commitdiff
jvlc: test to check audio mute on 2 different instances
authorFilippo Carone <littlejohn@videolan.org>
Tue, 6 Jan 2009 18:41:00 +0000 (19:41 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Tue, 6 Jan 2009 18:43:18 +0000 (19:43 +0100)
bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java

index 2803f291e50a254fda3707059270c52dcf42f6ab..ac6b31e5a8e86909663ca669ceb8fa40903fcf4b 100644 (file)
@@ -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());
+        
+    }
 }