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