protected String mrl;
- private String address = "http://streams.videolan.org/streams-videolan/reference/mp4/bl.mp4";
+ private String address = "http://streams.videolan.org/streams-videolan/avi/Hero-Div3.avi";
/**
* Logger.
protected libvlc_exception_t exception;
- private String address = "http://streams.videolan.org/streams-videolan/reference/avi/Hero-Div3.avi";
+ private String address = "http://streams.videolan.org/streams-videolan/avi/Hero-Div3.avi";
/**
* Logger.
out.write(buffer, 0, numRead);
numWritten += numRead;
}
+ if (numWritten == 0)
+ {
+ throw new RuntimeException("Cannot download sample, please check the url or your internet connection.");
+ }
log.info("Sample downloaded.");
mrl = testResoucesPath + ".avi";
}
libvlc.libvlc_media_list_player_release(mediaListPlayer);
}
- /**
- * this fails: see https://trac.videolan.org/vlc/ticket/1527
- */
@Test
public void mediaListPlayerPlay()
{
Assert.assertEquals("Exception message: " + exception.message + ".\n", 0, exception.raised);
libvlc.libvlc_media_release(mediaDescriptor);
libvlc.libvlc_media_list_release(mediaList);
- libvlc.libvlc_media_list_player_release(mediaListPlayer);
}
@Test