Example #1
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
        }
Example #2
0
 internal AudioManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
     Outputs       = new AudioOutputsManagement(manager, mediaPlayerInstance);
     Tracks        = new AudioTracksManagement(manager, mediaPlayerInstance);
 }
Example #3
0
 internal AudioOutputDevice(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance, AudioOutputDescription audioDescription, int id)
 {
     _manager = manager;
     myMediaPlayerInstance    = mediaPlayerInstance;
     myAudioOutputDescription = audioDescription;
     Id = id;
 }
 internal AudioOutputDescription(string name, string description, VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     Name                  = name;
     Description           = description;
     myManager             = manager;
     myMediaPlayerInstance = mediaPlayerInstance;
     Devices               = new AudioOutputDevices(this, manager, myMediaPlayerInstance);
 }
Example #5
0
 public VideoManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
     Tracks        = new VideoTracksManagement(manager, mediaPlayerInstance);
     Marquee       = new MarqueeManagement(manager, mediaPlayerInstance);
     Logo          = new LogoManagement(manager, mediaPlayerInstance);
     Adjustments   = new AdjustmentsManagement(manager, mediaPlayerInstance);
 }
Example #6
0
        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);
        }
Example #7
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
        }
Example #8
0
 public ChapterManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
 internal AudioOutputDevices(AudioOutputDescription audioOutputDescription, VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myAudioOutputDescription = audioOutputDescription;
     _manager = manager;
     myMediaPlayerInstance = mediaPlayerInstance;
 }
Example #10
0
 public VlcMediaPlayer(DirectoryInfo vlcLibDirectory, string[] options)
     : this(VlcManager.GetInstance(vlcLibDirectory), options)
 {
 }
Example #11
0
 public VlcMediaPlayer(DirectoryInfo vlcLibDirectory)
     : this(VlcManager.GetInstance(vlcLibDirectory))
 {
 }
Example #12
0
 public LogoManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     _manager      = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
        internal static List <AudioOutputDescription> GetSubOutputDescription(AudioOutputDescriptionStructure module, VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
        {
            var result = new List <AudioOutputDescription>();

            result.Add(new AudioOutputDescription(module.Name, module.Description, manager, mediaPlayerInstance));
            if (module.NextAudioOutputDescription != IntPtr.Zero)
            {
                AudioOutputDescriptionStructure nextModule = (AudioOutputDescriptionStructure)Marshal.PtrToStructure(module.NextAudioOutputDescription, typeof(AudioOutputDescriptionStructure));
                var data = GetSubOutputDescription(nextModule, manager, mediaPlayerInstance);
                result.AddRange(data);
            }
            return(result);
        }
 internal AudioOutputsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     _manager = manager;
     myMediaPlayerInstance = mediaPlayerInstance;
 }
 internal VideoTracksManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     _manager      = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
Example #16
0
 internal AudioOutputDescription(string name, string description, VlcManager manager)
 {
     Name        = name;
     Description = description;
     myManager   = manager;
 }
Example #17
0
        public override void OnApplyTemplate()
        {
            var host = Template.FindName("WFH", this) as WindowsFormsHost;
            var box = Template.FindName("PnlBox", this) as Panel;

            if (host != null && box != null)
            {
                if (Manager == null)
                {
                    Manager = new VlcManager();
                }
                Manager.ControlHandle = box.Handle;
            }
        }
Example #18
0
 public SubTitlesManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     _manager             = manager;
     _mediaPlayerInstance = mediaPlayerInstance;
 }
 internal AudioTracksManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
 public AdjustmentsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
 public DialogsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
Example #22
0
 public MarqueeManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }