예제 #1
0
 MediaDescriptor(JVLC jvlc, LibVlcMedia instance) {
   libvlc_exception_t exception = new libvlc_exception_t();
   libvlc = jvlc.getLibvlc();
   this.instance = instance;
   eventManager = libvlc.libvlc_media_event_manager(instance, exception);
 }
예제 #2
0
 /**
  * @param jvlc The jvlc instance to create the media descriptor for.
  * @param media The media string
  */
 public MediaDescriptor(JVLC jvlc, String media) {
   libvlc_exception_t exception = new libvlc_exception_t();
   libvlc = jvlc.getLibvlc();
   instance = libvlc.libvlc_media_new(jvlc.getInstance(), media, exception);
   eventManager = libvlc.libvlc_media_event_manager(instance, exception);
 }