Exemplo n.º 1
0
        protected override void OnResume()
        {
            base.OnResume();
            if (videoView == null || !isPaused)
            {
                return;
            }

            videoView.Resume();
            isPaused = false;
        }
Exemplo n.º 2
0
        public bool OnTouch(View v, MotionEvent e)
        {
            try
            {
                switch (e.Action)
                {
                case MotionEventActions.Down:
                    PressTime = CurrentTimeMillis();
                    StoriesProgress.Pause();

                    if (StoryVideoView != null && StoryVideoView.IsPlaying)
                    {
                        PlayerPaused = true;
                        StoryVideoView?.Pause();
                    }

                    return(false);

                case MotionEventActions.Up:
                    long now = CurrentTimeMillis();
                    StoriesProgress.Resume();

                    if (StoryVideoView != null && PlayerPaused)
                    {
                        StoryVideoView?.Resume();
                    }

                    return(Limit < now - PressTime);
                }
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
            return(false);
        }
Exemplo n.º 3
0
 protected override void OnResume()
 {
     base.OnResume();
     previewVideoPlayer.Resume();
 }
Exemplo n.º 4
0
 protected override void OnResume()
 {
     base.OnResume();
     VideoView.Resume();
 }