예제 #1
0
        /// <summary>
        /// Start a video.
        /// </summary>
        /// <param name="url">The url of the video.</param>
        public void StartVideo(string url)
        {
            _player?.TogglePlay(true);
            IServer server = _player as IServer;

            _videoUrl = url;
            _refreshClientInfo?.Abort();
            _refreshClientInfo = new Thread(() => CheckTime());
            _refreshClientInfo.Start();
            if (server != null)
            {
                server.GetInfo().VideoUrl = url;
                server.TogglePlay(true);
                server.SetVideo(url);
            }
        }
 public virtual bool TogglePlay(bool?pause)
 {
     return(_player.TogglePlay(pause));
 }