Search in sources :

Example 1 with MediaPlayer

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);
}
Also used : MediaPlayer(org.videolan.libvlc.MediaPlayer)

Aggregations

MediaPlayer (org.videolan.libvlc.MediaPlayer)1