@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; }
@Test public void getMrlTest() { MediaDescriptor md = new MediaDescriptor(jvlc, mrl); Assert.assertEquals(mrl, md.getMrl()); }