/// <summary> /// /// </summary> /// <param name="Media"></param> public override void Load(VlcMedia Media) { VlcMediaList lst = _Vlc.CreateMediaList(); lst.Add(Media); Load(lst); }
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)); } }
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(); }
/// <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(); }
internal abstract void SetOptionsToMedia(string optionSeparator, VlcMedia media);
internal override void SetOptionsToMedia(string optionSeparator, VlcMedia media) { ScreenCapture.SetOptions(optionSeparator, media, typeof(Options.ScreenCaptureOptions.ScreenOptionEnum)); }
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); }
internal override void SetOptionsToMedia(string optionSeparator, VlcMedia media) { Audio.SetOptions(optionSeparator, media, typeof (AudioOptions.AudioOptionEnum)); Video.SetOptions(optionSeparator, media, typeof (VideoOptions.VideoOptionEnum)); }