void DisplayError( ) { DidDisplayError = true; ResultView.Show(MessagesStrings.Error_Title, PrivateControlStylingConfig.Result_Symbol_Failed, MessagesStrings.Error_Watch_Playback, GeneralStrings.Retry); MoviePlayer.Stop( ); ActivityIndicator.Hidden = true; }
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( ); } }
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(); } } } }
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(); } }