Exemple #1
1
        internal VlcMediaPlayer(VlcManager manager, string[] options)
        {
            Manager = manager;
            Manager.CreateNewInstance(options);

            myMediaPlayerInstance = manager.CreateMediaPlayer();
            RegisterEvents();
            Chapters = new ChapterManagement(manager, myMediaPlayerInstance);
            SubTitles = new SubTitlesManagement(manager, myMediaPlayerInstance);
            Video = new VideoManagement(manager, myMediaPlayerInstance);
            Audio = new AudioManagement(manager, myMediaPlayerInstance);
        }
Exemple #2
0
        internal VlcMediaPlayer(VlcManager manager)
        {
            Manager = manager;
#if DEBUG
            Manager.CreateNewInstance(new[]
            {
                "--extraintf=logger",
                "--verbose=2"
            });
#else
            Manager.CreateNewInstance(new[]
            {
                "--quiet"
            });
#endif
            myMediaPlayerInstance = manager.CreateMediaPlayer();
            RegisterEvents();
            Chapters  = new ChapterManagement(manager, myMediaPlayerInstance);
            SubTitles = new SubTitlesManagement(manager, myMediaPlayerInstance);
            Video     = new VideoManagement(manager, myMediaPlayerInstance);
            Audio     = new AudioManagement(manager, myMediaPlayerInstance);
#if !NET20 && !NET35 && !NET40
            Dialogs = new DialogsManagement(manager, myMediaPlayerInstance);
#endif
        }
        internal VlcMediaPlayer(VlcManager manager, string[] options)
        {
            Manager = manager;
            Manager.CreateNewInstance(options);

            myMediaPlayerInstance = manager.CreateMediaPlayer();
            RegisterEvents();
            Chapters  = new ChapterManagement(manager, myMediaPlayerInstance);
            SubTitles = new SubTitlesManagement(manager, myMediaPlayerInstance);
            Video     = new VideoManagement(manager, myMediaPlayerInstance);
            Audio     = new AudioManagement(manager, myMediaPlayerInstance);
        }
Exemple #4
0
        public VlcMediaPlayer(VlcManager manager)
        {
            Manager = manager;
            myMediaPlayerInstance = manager.CreateMediaPlayer();
            RegisterEvents();
            Chapters  = new ChapterManagement(manager, myMediaPlayerInstance);
            SubTitles = new SubTitlesManagement(manager, myMediaPlayerInstance);
            Video     = new VideoManagement(manager, myMediaPlayerInstance);
            Audio     = new AudioManagement(manager, myMediaPlayerInstance);
#if !NET20 && !NET35 && !NET40
            Dialogs = new DialogsManagement(manager, myMediaPlayerInstance);
#endif
        }
Exemple #5
0
 private void ResetFromMediaCore(Control ctrl)
 {
     VideoHostControlHandle = IntPtr.Zero;
     var mediaInstance = GetMedia().MediaInstance;
     if (ctrl != null)
         ctrl.GetType().GetMethod("RecreateHandle", BindingFlags.NonPublic | BindingFlags.Instance).Invoke(ctrl, null);
     myMediaPlayerInstance.Pointer = IntPtr.Zero;
     myMediaPlayerInstance = Manager.CreateMediaPlayerFromMedia(mediaInstance);
     RegisterEvents();
     Chapters = new ChapterManagement(Manager, myMediaPlayerInstance);
     SubTitles = new SubTitlesManagement(Manager, myMediaPlayerInstance);
     Video = new VideoManagement(Manager, myMediaPlayerInstance);
     Audio = new AudioManagement(Manager, myMediaPlayerInstance);
     if (ctrl != null)
         VideoHostControlHandle = ctrl.Handle;
 }
Exemple #6
0
 private void ResetFromMediaCore(Control ctrl)
 {
     VideoHostControlHandle = IntPtr.Zero;
     var mediaInstance = GetMedia().MediaInstance;
     if (ctrl != null)
         ctrl.GetType().GetMethod("RecreateHandle", BindingFlags.NonPublic | BindingFlags.Instance).Invoke(ctrl, null);
     myMediaPlayerInstance.Pointer = IntPtr.Zero;
     myMediaPlayerInstance = Manager.CreateMediaPlayerFromMedia(mediaInstance);
     RegisterEvents();
     Chapters = new ChapterManagement(Manager, myMediaPlayerInstance);
     Subtitles = new SubtitlesManagement(Manager, myMediaPlayerInstance);
     Video = new VideoManagement(Manager, myMediaPlayerInstance);
     Audio = new AudioManagement(Manager, myMediaPlayerInstance);
     if (ctrl != null)
         VideoHostControlHandle = ctrl.Handle;
 }
 internal VlcMediaPlayer(VlcManager manager)
 {
     Manager = manager;
     #if DEBUG
     Manager.CreateNewInstance(new[]
     {
         "--extraintf=logger",
         "--verbose=2"
     });
     #else
     Manager.CreateNewInstance(null);
     #endif
     myMediaPlayerInstance = manager.CreateMediaPlayer();
     RegisterEvents();
     Chapters = new ChapterManagement(manager, myMediaPlayerInstance);
     SubTitles = new SubTitlesManagement(manager, myMediaPlayerInstance);
     Video = new VideoManagement(manager, myMediaPlayerInstance);
     Audio = new AudioManagement(manager, myMediaPlayerInstance);
 }