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); }
/** * @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); }