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); }
internal AudioManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; Outputs = new AudioOutputsManagement(manager, mediaPlayerInstance); Tracks = new AudioTracksManagement(manager, mediaPlayerInstance); }
internal AudioOutputDevice(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance, AudioOutputDescription audioDescription, int id) { myManager = 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); }
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); }
private void barButtonItemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { VlcManager mgr = vlcControl7.VlcMediaPlayer.Manager; AboutForm form = new AboutForm(); form.VlcVersion = mgr.VlcVersion; form.VlcLibDirectory = vlcControl7.VlcLibDirectory.FullName; form.ShowDialog(this); }
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; }
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; } }
/// <summary> /// Constructor of VlcControl /// </summary> public VlcControl() { BackColor = Color.Black; if(DesignMode) return; Manager = new VlcManager(); try { CreateHandle(); Manager.ControlHandle = Handle; Manager.VlcLibPath = Path.GetDirectoryName(Application.ExecutablePath); } catch (Exception) { return; } }
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); }
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); }
internal VlcMediaPlayer(VlcManager manager) { Manager = manager; // SUR: Configure VLC options at startup Manager.CreateNewInstance(new string[] { #if DEBUG_TODO "--extraintf=logger", "--verbose=2", #else "--quiet", #endif //"--play-and-pause", // NOTE: SUR: Pauses at end of video }); _myMediaPlayerInstance = manager.CreateMediaPlayer(); RegisterEvents(); Chapters = new ChapterManagement(manager, _myMediaPlayerInstance); SubTitles = new SubTitlesManagement(manager, _myMediaPlayerInstance); Video = new VideoManagement(manager, _myMediaPlayerInstance); Audio = new AudioManagement(manager, _myMediaPlayerInstance); }
internal AudioOutputDevices(AudioOutputDescription audioOutputDescription, VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myAudioOutputDescription = audioOutputDescription; myManager = manager; myMediaPlayerInstance = mediaPlayerInstance; }
public MarqueeManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; }
public SubTitlesManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; }
internal AudioOutputsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayerInstance = mediaPlayerInstance; }
public VlcMediaPlayer(DirectoryInfo vlcLibDirectory) : this(VlcManager.GetInstance(vlcLibDirectory)) { }
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) { #if NET20 || NET35 || NET40 || NET45 var nextModule = (AudioOutputDescriptionStructure)Marshal.PtrToStructure(module.NextAudioOutputDescription, typeof(AudioOutputDescriptionStructure)); #else var nextModule = Marshal.PtrToStructure <AudioOutputDescriptionStructure>(module.NextAudioOutputDescription); #endif var data = GetSubOutputDescription(nextModule, manager, mediaPlayerInstance); result.AddRange(data); } return(result); }
public AdjustmentsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; }
public AdjustmentsManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { _myManager = manager; _myMediaPlayer = mediaPlayerInstance; }
public static VlcMediaInstance AddOptionToMedia(VlcMediaInstance mediaInstance, VlcManager manager, string option)
public LogoManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; }
public VlcMediaPlayer(DirectoryInfo vlcLibDirectory, string[] options) : this(VlcManager.GetInstance(vlcLibDirectory), options) { }
public static VlcMediaInstance AddOptionToMedia(this VlcMediaInstance mediaInstance, VlcManager manager, string option) #endif { manager.AddOptionToMedia(mediaInstance, option); return(mediaInstance); }
internal VideoTracksManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; }
public void Play(MediaBase media) { if (DesignMode) return; //Initialize a default VlcManager if (myVlcManager == null) myVlcManager = new VlcManager(); InitVlcMediaPlayer(); if (media.Initialize(myVlcManager.VlcClient) == IntPtr.Zero) return; LibVlcMethods.libvlc_media_player_set_media(VlcMediaPlayer, media.VlcMedia); LibVlcMethods.libvlc_media_player_play(VlcMediaPlayer); }
public ChapterManagement(VlcManager manager, VlcMediaPlayerInstance mediaPlayerInstance) { myManager = manager; myMediaPlayer = mediaPlayerInstance; }