コード例 #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);
 }