[vlc-devel] commit: jvlc: test to check audio mute on 2 different instances ( Filippo Carone )
git version control
git at videolan.org
Tue Jan 6 19:43:22 CET 2009
vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Tue Jan 6 19:41:00 2009 +0100| [ab75bc3a7a2de0ba1662c26838fbbc90cfd81395] | committer: Filippo Carone
jvlc: test to check audio mute on 2 different instances
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab75bc3a7a2de0ba1662c26838fbbc90cfd81395
---
.../src/test/java/org/videolan/jvlc/JVLCTest.java | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java b/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java
index 2803f29..ac6b31e 100644
--- a/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java
+++ b/bindings/java/core/src/test/java/org/videolan/jvlc/JVLCTest.java
@@ -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());
+
+ }
}
More information about the vlc-devel
mailing list