예제 #1
0
        public void CreatePlayer()
        {
            ReleasePlayer();

            VpcPlayer      = new VlcPlayerControl();
            VpcPlayer.Dock = DockStyle.Fill;
            VpcPlayer.EnabledDisplayPlayerControlPanel = false;
            VpcPlayer.StopEvent += vpcPlayer_StopEvent;
            Controls.Add(VpcPlayer);
            //Init
            VpcPlayer.InitPlayer();
        }
예제 #2
0
        public void ReleasePlayer()
        {
            if (VpcPlayer != null)
            {
                VpcPlayer.StopPlayer();

                try
                {
                    VpcPlayer.VlcPlayerCore.Stop();
                }
                catch (Exception ex) { }

                this.Controls.Remove(VpcPlayer);
                VpcPlayer = null;
            }
        }