Пример #1
0
        internal void PlayVideo()
        {
            if (this._inPlayRequest || (DateTime.Now - this._lastTimeCompletedPlayRequest).TotalSeconds < 3.5)
            {
                return;
            }
            this._inPlayRequest = true;
            int selectedResolution = this.GetSelectedResolution();

            base.SetInProgress(true, CommonResources.Loading);
            VideoPlayerHelper.PlayVideo(this.Video, delegate
            {
                Execute.ExecuteOnUIThread(delegate
                {
                    base.SetInProgress(false, "");
                    this._inPlayRequest = false;
                    this._lastTimeCompletedPlayRequest = DateTime.Now;
                });
            }, selectedResolution, this._actionSource, this._videoContext);
        }