| | 229 | |
|---|
| | 230 | @Test |
|---|
| | 231 | public void mediaListPlayerNextNoItems() |
|---|
| | 232 | { |
|---|
| | 233 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| | 234 | LibVlcMediaListPlayer mediaListPlayer = libvlc.libvlc_media_list_player_new(libvlcInstance, exception); |
|---|
| | 235 | libvlc.libvlc_media_list_player_next(mediaListPlayer, exception); |
|---|
| | 236 | Assert.assertEquals(1, exception.raised); |
|---|
| | 237 | } |
|---|
| | 238 | |
|---|
| | 239 | /** |
|---|
| | 240 | * fails, see https://trac.videolan.org/vlc/ticket/1535 |
|---|
| | 241 | */ |
|---|
| | 242 | // @Test |
|---|
| | 243 | public void mediaListPlayerNext() throws Exception |
|---|
| | 244 | { |
|---|
| | 245 | libvlc_exception_t exception = new libvlc_exception_t(); |
|---|
| | 246 | LibVlcMediaListPlayer mediaListPlayer = libvlc.libvlc_media_list_player_new(libvlcInstance, exception); |
|---|
| | 247 | LibVlcMediaList mediaList = libvlc.libvlc_media_list_new(libvlcInstance, exception); |
|---|
| | 248 | LibVlcMediaDescriptor mediaDescriptor = libvlc.libvlc_media_descriptor_new(libvlcInstance, mrl, exception); |
|---|
| | 249 | libvlc.libvlc_media_list_add_media_descriptor(mediaList, mediaDescriptor, exception); |
|---|
| | 250 | libvlc.libvlc_media_list_add_media_descriptor(mediaList, mediaDescriptor, exception); |
|---|
| | 251 | libvlc.libvlc_media_list_player_set_media_list(mediaListPlayer, mediaList, exception); |
|---|
| | 252 | libvlc.libvlc_media_list_player_play_item_at_index(mediaListPlayer, 0, exception); |
|---|
| | 253 | Thread.sleep(150); |
|---|
| | 254 | libvlc.libvlc_media_list_player_next(mediaListPlayer, exception); |
|---|
| | 255 | Assert.assertEquals(0, exception.raised); |
|---|
| | 256 | } |
|---|
| | 257 | |
|---|