/// <summary> /// Initializes a new instance of the <b>VlcMediaListPlayer</b> class. /// </summary> /// <param name="Vlc"></param> /// <param name="p_ml_player"></param> /// <param name="p_media_player"></param> internal VlcMediaListPlayer(VideoLanClient Vlc, VlcMediaList List, IntPtr p_ml_player, IntPtr p_media_player) : base(Vlc, p_media_player) { //set our Media instance pointer this.p_ml_player = p_ml_player; InteropMethods.libvlc_media_list_player_set_media_player(p_ml_player, p_media_player, ref p_ex); p_ex.CheckException(); Load(List); }
public VlcMediaListPlayer CreateMediaListPlayer(IntPtr parent, VlcMediaList playlist) { IntPtr p_media_player = InteropMethods.libvlc_media_player_new(p_instance, 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(); IntPtr p_ml_player = InteropMethods.libvlc_media_list_player_new(p_instance, ref p_exception); p_exception.CheckException(); return(new VlcMediaListPlayer(this, playlist, p_ml_player, p_media_player)); }
/// <summary> /// /// </summary> /// <param name="List"></param> public void Load(VlcMediaList List) { SyncEvents(); InteropMethods.libvlc_media_list_player_set_media_list(p_ml_player, List.p_mlist, ref p_ex); p_ex.CheckException(); _PlayList = List; }
public VlcMediaListPlayer CreateMediaListPlayer(IntPtr parent, VlcMediaList playlist) { IntPtr p_media_player = InteropMethods.libvlc_media_player_new(p_instance, 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(); IntPtr p_ml_player = InteropMethods.libvlc_media_list_player_new(p_instance, ref p_exception); p_exception.CheckException(); return new VlcMediaListPlayer(this, playlist, p_ml_player, p_media_player); }