use of org.videolan.libvlc.MediaPlayer in project butter-android by butterproject.
the class VlcPlayer method initialize.
public void initialize() throws IllegalStateException {
if (libVLC == null) {
throw new IllegalStateException("Trying to initialise VlcPlayer but libVLC is null");
}
if (mediaPlayer != null) {
throw new IllegalStateException("MediaPlayer is already initialized");
}
mediaPlayer = new MediaPlayer(libVLC);
mediaPlayer.setEventListener(this);
}
Aggregations