Beispiel #1
0
        public int DeleteItem(int item)
        {
            int ret = libvlc_playlist_delete_item(VlcInstance.VlcInstanceHandle, item, _excp);

            VlcException.HandleVlcException(ref _excp);
            return(ret);
        }
Beispiel #2
0
        private bool has_next()
        {
            int ret = libvlc_log_iterator_has_next(iter, _excp);

            VlcException.HandleVlcException(ref _excp);
            return(ret == 1 ? true : false);
        }
Beispiel #3
0
        public int Add(string uri, string name)
        {
            int ret = libvlc_playlist_add(VlcInstance.VlcInstanceHandle, uri, name, _excp);

            VlcException.HandleVlcException(ref _excp);
            return(ret);
        }
Beispiel #4
0
 private void free()
 {
     if (!iter.IsInvalid)
     {
         libvlc_log_iterator_free(iter, _excp);
         VlcException.HandleVlcException(ref _excp);
     }
 }
Beispiel #5
0
        public VlcInstance(VlcConfig vlcConfig)
        {
            VlcConfig = vlcConfig;

            VlcInstanceHandle = libvlc_new(VlcConfig.Arguments.Length, VlcConfig.Arguments, _excp);
            VlcException.HandleVlcException(ref _excp);

            VlcPlaylist = new VlcPlaylist(this);
        }
Beispiel #6
0
 public void Clear()
 {
     lock (SyncRoot)
     {
         if (Count > 0)
         {
             libvlc_log_clear(_log, _excp);
             VlcException.HandleVlcException(ref _excp);
         }
     }
 }
Beispiel #7
0
        public virtual bool MoveNext()
        {
            bool ret = has_next();

            if (ret)
            {
                libvlc_log_message_t msg = new libvlc_log_message_t();
                msg.message_size = (uint)Marshal.SizeOf(typeof(libvlc_log_message_t));

                IntPtr p = libvlc_log_iterator_next(iter, ref msg, _excp);
                VlcException.HandleVlcException(ref _excp);

                last_ptr = (libvlc_log_message_t)Marshal.PtrToStructure(p, typeof(libvlc_log_message_t));
            }

            return(ret);
        }
Beispiel #8
0
 private void get_iter()
 {
     iter = libvlc_log_get_iterator(log, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #9
0
 public void Play(Int32 item)
 {
     libvlc_playlist_play(VlcInstance.VlcInstanceHandle, item, 0, null, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #10
0
 public void Clear()
 {
     libvlc_playlist_clear(VlcInstance.VlcInstanceHandle, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #11
0
 public void Next()
 {
     libvlc_playlist_next(VlcInstance.VlcInstanceHandle, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #12
0
 public void Prev()
 {
     libvlc_playlist_prev(VlcInstance.VlcInstanceHandle, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #13
0
 public void Stop()
 {
     libvlc_playlist_stop(VlcInstance.VlcInstanceHandle, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #14
0
 public void ToggleMute()
 {
     libvlc_audio_toggle_mute(VlcInstanceHandle, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #15
0
 public void TakeSnapshot(string fileName)
 {
     libvlc_video_take_snapshot(_input, fileName, _excp);
     VlcException.HandleVlcException(ref _excp);
 }
Beispiel #16
0
 public void VideoToggleFullScreen()
 {
     libvlc_toggle_fullscreen(_input, _excp);
     VlcException.HandleVlcException(ref _excp);
 }