import org.junit.Test;
import org.videolan.jvlc.internal.LibVlc.LibVlcInstance;
import org.videolan.jvlc.internal.LibVlc.LibVlcMediaDescriptor;
-import org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance;
import org.videolan.jvlc.internal.LibVlc.LibVlcMediaList;
import org.videolan.jvlc.internal.LibVlc.LibVlcMediaListPlayer;
import org.videolan.jvlc.internal.LibVlc.libvlc_exception_t;
Assert.assertEquals(0, exception.raised);
}
-// @Test
- /**
- * see Ticket #1522 on trac ( http://trac.videolan.org/vlc/ticket/1522 )
- */
+ @Test
public void mediaListPlayerIsPlayingTest()
{
libvlc_exception_t exception = new libvlc_exception_t();
Assert.assertEquals(0, exception.raised);
}
+ @Test
+ public void mediaListPlayerPlayNoItemTest()
+ {
+ libvlc_exception_t exception = new libvlc_exception_t();
+ LibVlcMediaListPlayer mediaListPlayer = libvlc.libvlc_media_list_player_new(libvlcInstance, exception);
+ libvlc.libvlc_media_list_player_play(mediaListPlayer, exception);
+ Assert.assertEquals(1, exception.raised);
+ }
+
+// @Test
+ /**
+ * disabled: see https://trac.videolan.org/vlc/attachment/ticket/1527
+ */
+ public void mediaListPlayerPlay()
+ {
+ libvlc_exception_t exception = new libvlc_exception_t();
+ LibVlcMediaListPlayer mediaListPlayer = libvlc.libvlc_media_list_player_new(libvlcInstance, exception);
+ LibVlcMediaList mediaList = libvlc.libvlc_media_list_new(libvlcInstance, exception);
+ LibVlcMediaDescriptor mediaDescriptor = libvlc.libvlc_media_descriptor_new(libvlcInstance, mrl, exception);
+ libvlc.libvlc_media_list_add_media_descriptor(mediaList, mediaDescriptor, exception);
+ libvlc.libvlc_media_list_player_set_media_list(mediaListPlayer, mediaList, exception);
+ libvlc.libvlc_media_list_player_play(mediaListPlayer, exception);
+ }
+
}