Ejemplo n.º 1
0
 private void PlayerClosed(object sender, EventArgs e)
 {
     //_player = null;
     PlayerVLC = null;
 }
Ejemplo n.º 2
0
        public void Play(string filename, int objectId, string displayName)
        {
            if (InvokeRequired)
            {
                Invoke(new Action(() => Play(filename,objectId,displayName)));
                return;
            }
            if (PlayerVLC == null)
            {
                PlayerVLC = new PlayerVLC(displayName, this);
                PlayerVLC.Show(this);
                PlayerVLC.Closed += PlayerClosed;
                PlayerVLC.Activate();
                PlayerVLC.BringToFront();
                PlayerVLC.Owner = this;
            }

            PlayerVLC.ObjectID = objectId;
            PlayerVLC.Play(filename, displayName);
        }
Ejemplo n.º 3
0
        public void Play(string filename, int objectId, string displayName)
        {
            if (PlayerVLC == null)
            {
                PlayerVLC = new PlayerVLC(displayName, this);
                PlayerVLC.Show(this);
                PlayerVLC.Closed += PlayerClosed;
                PlayerVLC.Activate();
                PlayerVLC.BringToFront();
                PlayerVLC.Owner = this;
            }

            PlayerVLC.ObjectID = objectId;
            PlayerVLC.Play(filename, displayName);
        }