Beispiel #1
0
 void OnVideoOutputChanged()
 {
     if (VideoOutput != null)
     {
         if (UsesEmbeddingControls)
         {
             VideoOutput.Controller = _controls.Value;
         }
         VideoOutput.MediaView.Focused += OnVideoOutputFocused;
         if (VideoOutput.MediaView is View outputView)
         {
             TapGestureRecognizer tapGesture = new TapGestureRecognizer();
             tapGesture.Tapped += OnOutputTapped;
             outputView.GestureRecognizers.Add(tapGesture);
         }
     }
     _impl.SetDisplay(VideoOutput);
 }
 void OnVideoOutputChanged()
 {
     if (VideoOutput != null)
     {
         if (UsesEmbeddingControls)
         {
             VideoOutput.Controller = _controls.Value;
         }
         VideoOutput.MediaView.Focused += OnVideoOutputFocused;
         //InputEvents.GetEventHandlers(VideoOutput.MediaView).Add(new RemoteKeyHandler(OnVideoOutputKeyEvent, RemoteControlKeyTypes.KeyDown));
         if (VideoOutput.MediaView is View outputView)
         {
             TapGestureRecognizer tapGesture = new TapGestureRecognizer();
             tapGesture.Tapped += OnOutputTapped;
             outputView.GestureRecognizers.Add(tapGesture);
         }
     }
     _impl.SetDisplay(VideoOutput);
 }