Пример #1
0
 @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);
 }
Пример #2
0
  public void openMedia(String url) {
    mediaDescriptor = new MediaDescriptor(jvlc, url);
    mediaPlayer = mediaDescriptor.getMediaPlayer();
    mediaPlayer.addListener(this);

    playerState = PlayerState.READY;
  }
Пример #3
0
 @Test
 public void getMrlTest() {
   MediaDescriptor md = new MediaDescriptor(jvlc, mrl);
   Assert.assertEquals(mrl, md.getMrl());
 }