private void Initalize(string vlcDirectory, string[] args) { RootPath = vlcDirectory; //save the original EnviornmentDirectory. string originalDir = Environment.CurrentDirectory; //Set the directory to load the COM object libvlc.dll Environment.CurrentDirectory = vlcDirectory; p_exception = new libvlc_exception_t(); p_exception.Initalize(); p_instance = InteropMethods.libvlc_new(args.Length, args, ref p_exception); p_exception.CheckException(); Environment.CurrentDirectory = originalDir; }
public virtual void Play() { SyncEvents(); InteropMethods.libvlc_media_player_play(p_media_player, ref p_ex); p_ex.CheckException(); }
public void Play() { InteropMethods.libvlc_vlm_play_media(Vlm.Vlc.p_instance, Name, ref p_exception); p_exception.CheckException(); }
public VlcMedia CreateMedia(string MRL) { IntPtr p_media = InteropMethods.libvlc_media_new(p_instance, MRL, ref p_exception); p_exception.CheckException(); return(new VlcMedia(p_media)); }
internal void AttachEvent(VlcEventType EventType, VlcCallback Callback, IntPtr UserData) { InteropMethods.libvlc_event_attach(p_event_manager, EventType, Callback, UserData, ref p_exception); p_exception.CheckException(); _AttachedEvents.Add(EventType); }
public void AddOption(string option) { InteropMethods.libvlc_media_add_option(p_media, option, ref p_exception); p_exception.CheckException(); }