Exemple #1
0
 public void Copy(VlcPlayer vlcPlayer)
 {
     _libvlcInstance    = vlcPlayer._libvlcInstance;
     _libvlcMediaPlayer = vlcPlayer._libvlcMediaPlayer;
     _duration          = vlcPlayer._duration;
     _playPath          = vlcPlayer._playPath;
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 private bool InitVlcPlayer()
 {
     if (null == _mVlc)
     {
         _mVlc = NewVlcPlayer();
         //_mVlcNext = NewVlcPlayer();
     }
     return(true);
 }