コード例 #1
0
        void DisplayError( )
        {
            DidDisplayError = true;

            ResultView.Show(MessagesStrings.Error_Title,
                            PrivateControlStylingConfig.Result_Symbol_Failed,
                            MessagesStrings.Error_Watch_Playback,
                            GeneralStrings.Retry);

            MoviePlayer.Stop( );
            ActivityIndicator.Hidden = true;
        }
コード例 #2
0
        public override void ViewWillDisappear(bool animated)
        {
            base.ViewWillDisappear(animated);

            // only process this if we're not entering fullscreen
            if (EnteringFullscreen == false)
            {
                MoviePlayer.Stop( );

                foreach (NSObject handle in ObserverHandles)
                {
                    NSNotificationCenter.DefaultCenter.RemoveObserver(handle);
                }

                ObserverHandles.Clear( );
            }
        }
コード例 #3
0
ファイル: Observer.cs プロジェクト: yumu908/LemonImaging
 private void Media(FrameInfoKey key)
 {
     if (argus.MeidaHit(viewer.ResultCode))
     {
         frameNum += 60;
         if (!Catched)
         {
             playboxFlag = !playboxFlag;
             if (playboxFlag)
             {
                 moviePlayer.Play(true);
                 moviePlayer.PlayAudio(true);
             }
             else
             {
                 moviePlayer.Stop();
             }
         }
     }
 }
コード例 #4
0
ファイル: MoviePanel.cs プロジェクト: KHCmaster/PPD
            void MovieController_Inputed(IFocusable sender, InputEventArgs args)
            {
                if (args.InputInfo.IsPressed(ButtonType.Left))
                {
                    list[currentIndex].Selected = false;
                    currentIndex--;
                    if (currentIndex < 0)
                    {
                        currentIndex = list.Length - 1;
                    }
                    list[currentIndex].Selected = true;
                }
                else if (args.InputInfo.IsPressed(ButtonType.Right))
                {
                    list[currentIndex].Selected = false;
                    currentIndex++;
                    if (currentIndex >= list.Length)
                    {
                        currentIndex = 0;
                    }
                    list[currentIndex].Selected = true;
                }
                else if (args.InputInfo.IsPressed(ButtonType.Circle))
                {
                    switch (currentIndex)
                    {
                    case 0:
                        moviePlayer.ToggleAspectRatio();
                        break;

                    case 1:
                        moviePlayer.SeekBackward();
                        break;

                    case 2:
                        moviePlayer.TogglePlayOrPause();
                        break;

                    case 3:
                        moviePlayer.Stop();
                        break;

                    case 4:
                        moviePlayer.SeekForward();
                        break;

                    case 5:
                        moviePlayer.CreateThumb();
                        break;

                    case 6:
                        if (PPDGeneralSetting.Setting.MovieLoopType >= MovieLoopType.Random)
                        {
                            PPDGeneralSetting.Setting.MovieLoopType = MovieLoopType.One;
                        }
                        else
                        {
                            PPDGeneralSetting.Setting.MovieLoopType++;
                        }
                        break;
                    }
                }
                else if (args.InputInfo.IsPressed(ButtonType.Cross) || args.InputInfo.IsPressed(ButtonType.Start))
                {
                    FocusManager.RemoveFocus();
                }
            }