private void PausePlayback(IMediaPlugin mediaPlugin)
 {
     if (mediaPlugin.CurrentState == MediaPluginState.Buffering || mediaPlugin.CurrentState == MediaPluginState.Playing)
     {
         mediaPlugin.Pause();
     }
     else
     {
         mediaPlugin.CurrentStateChanged += MediaPlugin_CurrentStateChanged;
     }
 }
 private void PausePlayback(IMediaPlugin mediaPlugin)
 {
     if (mediaPlugin.CurrentState == MediaPluginState.Buffering || mediaPlugin.CurrentState == MediaPluginState.Playing)
     {
         mediaPlugin.Pause();
     }
     else
     {
         mediaPlugin.CurrentStateChanged += MediaPlugin_CurrentStateChanged;
     }
 }
Ejemplo n.º 3
0
 public override void PauseAd()
 {
     ActiveMediaPlugin.Pause();
     base.Pause();
 }