public void Copy(VlcPlayer vlcPlayer) { _libvlcInstance = vlcPlayer._libvlcInstance; _libvlcMediaPlayer = vlcPlayer._libvlcMediaPlayer; _duration = vlcPlayer._duration; _playPath = vlcPlayer._playPath; }
private VlcPlayer NewVlcPlayer() { string pluginPath = System.Environment.CurrentDirectory + "\\plugins\\"; VlcPlayer vlcPlayer = new VlcPlayer(pluginPath); IntPtr renderWnd = this._panelPlay.Handle; vlcPlayer.SetRenderWindow((int)renderWnd); return(vlcPlayer); }
private bool InitVlcPlayer() { if (null == _mVlc) { _mVlc = NewVlcPlayer(); //_mVlcNext = NewVlcPlayer(); } return(true); }