Ejemplo n.º 1
0
 internal AudioOutputDescription(string name, string description, VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     Name                  = name;
     Description           = description;
     myManager             = manager;
     myMediaPlayerInstance = mediaPlayerInstance;
     Devices               = new AudioOutputDevices(this, manager, myMediaPlayerInstance);
 }
Ejemplo n.º 2
0
 public static VlcManager GetInstance(DirectoryInfo dynamicLinkLibrariesPath)
 {
     if (!myAllInstance.ContainsKey(dynamicLinkLibrariesPath))
     {
         myAllInstance[dynamicLinkLibrariesPath] = new VlcManager(dynamicLinkLibrariesPath);
     }
     return(myAllInstance[dynamicLinkLibrariesPath]);
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        public static VlcMediaInstance New(VlcManager manager, IntPtr pointer)
        {
            var instance = allInstances.Find(delegate(VlcMediaInstance i)
            {
                return(i == pointer);
            });

            if (null == instance)
            {
                instance = new VlcMediaInstance(manager, pointer);
                allInstances.Add(instance);
            }
            return(instance);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
 public static VlcMediaInstance AddOptionToMedia(VlcMediaInstance mediaInstance, VlcManager manager, string option)
Ejemplo n.º 7
0
        public static VlcMediaInstance AddOptionToMedia(this VlcMediaInstance mediaInstance, VlcManager manager, string[] option)
#endif
        {
            manager.AddOptionToMedia(mediaInstance, option);
            return(mediaInstance);
        }
Ejemplo n.º 8
0
 public VlcMediaPlayer(DirectoryInfo vlcLibDirectory, string[] options)
     : this(VlcManager.GetInstance(vlcLibDirectory), options)
 {
 }
Ejemplo n.º 9
0
 public VlcMediaPlayer(DirectoryInfo vlcLibDirectory)
     : this(VlcManager.GetInstance(vlcLibDirectory))
 {
 }
Ejemplo n.º 10
0
        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);
        }
Ejemplo n.º 11
0
 internal VlcInstance(VlcManager manager, IntPtr pointer) : base(pointer)
 {
     myManager = manager;
 }
Ejemplo n.º 12
0
 internal AudioOutputDevices(AudioOutputDescription audioOutputDescription, VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myAudioOutputDescription = audioOutputDescription;
     myManager             = manager;
     myMediaPlayerInstance = mediaPlayerInstance;
 }
Ejemplo n.º 13
0
 internal VideoTracksManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
Ejemplo n.º 14
0
 public SubTitlesManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager     = manager;
     myMediaPlayer = mediaPlayerInstance;
 }
Ejemplo n.º 15
0
 internal AudioOutputsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance)
 {
     myManager             = manager;
     myMediaPlayerInstance = mediaPlayerInstance;
 }
Ejemplo n.º 16
0
 internal VlcMediaEventManagerInstance(VlcManager manager, IntPtr pointer)
     : base(manager, pointer)
 {
 }
Ejemplo n.º 17
0
 private VlcMediaInstance(VlcManager manager, IntPtr pointer) : base(pointer)
 {
     myManager = manager;
 }