示例#1
0
        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;
        }
示例#2
0
 public virtual void Play()
 {
     SyncEvents();
     InteropMethods.libvlc_media_player_play(p_media_player, ref p_ex);
     p_ex.CheckException();
 }
示例#3
0
 public void Play()
 {
     InteropMethods.libvlc_vlm_play_media(Vlm.Vlc.p_instance, Name, ref p_exception);
     p_exception.CheckException();
 }
示例#4
0
        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));
        }
示例#5
0
 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);
 }
示例#6
0
 public void AddOption(string option)
 {
     InteropMethods.libvlc_media_add_option(p_media, option, ref p_exception);
     p_exception.CheckException();
 }