@Test public void getMediaPlayer() { MediaDescriptor md = new MediaDescriptor(jvlc, mrl); MediaPlayer mp = md.getMediaPlayer(); Assert.assertNotNull(mp); MediaPlayer mp2 = md.getMediaPlayer(); Assert.assertSame(mp, mp2); }
public void openMedia(String url) { mediaDescriptor = new MediaDescriptor(jvlc, url); mediaPlayer = mediaDescriptor.getMediaPlayer(); mediaPlayer.addListener(this); playerState = PlayerState.READY; }