/// <summary>
        ///
        /// </summary>
        /// <param name="Media"></param>
        public override void Load(VlcMedia Media)
        {
            VlcMediaList lst = _Vlc.CreateMediaList();

            lst.Add(Media);
            Load(lst);
        }
Beispiel #2
0
 internal void SetOptions(string optionPrefix, VlcMedia media, Type optionEnumType)
 {
     foreach (string element in Enum.GetNames(optionEnumType))
     {
         if (myDicOptions[(Enum) Enum.Parse(optionEnumType, element)].IsEnabled)
             media.AddOption(myDicOptions[(Enum) Enum.Parse(optionEnumType, element)].GetOptionString(optionPrefix));
     }
 }
Beispiel #3
0
 public virtual void Load(VlcMedia Media)
 {
     SyncEvents();
     InteropMethods.libvlc_media_player_set_media(p_media_player, Media.p_media, ref p_ex);
     p_ex.CheckException();
 }
Beispiel #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="Media"></param>
 public override void Load(VlcMedia Media)
 {
     VlcMediaList lst = _Vlc.CreateMediaList();
     lst.Add(Media);
     Load(lst);
 }
Beispiel #5
0
 /// <summary>
 /// Play the specified media from the playlist
 /// </summary>
 /// <param name="Media"></param>
 public void Play(VlcMedia Media)
 {
     SyncEvents();
     InteropMethods.libvlc_media_list_player_play_item(p_ml_player, Media.p_media, ref p_ex);
     p_ex.CheckException();
 }
Beispiel #6
0
 internal abstract void SetOptionsToMedia(string optionSeparator, VlcMedia media);
Beispiel #7
0
 internal override void SetOptionsToMedia(string optionSeparator, VlcMedia media)
 {
     ScreenCapture.SetOptions(optionSeparator, media, typeof(Options.ScreenCaptureOptions.ScreenOptionEnum));
 }
 /// <summary>
 /// Play the specified media from the playlist
 /// </summary>
 /// <param name="Media"></param>
 public void Play(VlcMedia Media)
 {
     SyncEvents();
     InteropMethods.libvlc_media_list_player_play_item(p_ml_player, Media.p_media, ref p_ex);
     p_ex.CheckException();
 }
Beispiel #9
0
 public VlcMediaPlayer CreateMediaPlayer(IntPtr parent, VlcMedia media)
 {
     IntPtr p_media_player = InteropMethods.libvlc_media_player_new_from_media(media.p_media, ref p_exception);
     p_exception.CheckException();
     //InteropMethods.libvlc_media_player_set_nsobject(p_media_player, parent, ref p_exception);
     InteropMethods.libvlc_media_player_set_hwnd(p_media_player, parent, ref p_exception);
     p_exception.CheckException();
     return new VlcMediaPlayer(this, p_media_player);
 }
Beispiel #10
0
 public virtual void Load(VlcMedia Media)
 {
     SyncEvents();
     InteropMethods.libvlc_media_player_set_media(p_media_player, Media.p_media, ref p_ex);
     p_ex.CheckException();
 }
Beispiel #11
0
 internal override void SetOptionsToMedia(string optionSeparator, VlcMedia media)
 {
     Audio.SetOptions(optionSeparator, media, typeof (AudioOptions.AudioOptionEnum));
     Video.SetOptions(optionSeparator, media, typeof (VideoOptions.VideoOptionEnum));
 }