/// <summary> /// 暂停 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ButtonPlayPause_Click(object sender, RoutedEventArgs e) { if (_curVideoPlayBackController != null) { if (ButtonPlayPause.Content.ToString().Equals("暂停")) { _curVideoPlayBackController.PlayPause(); this.ButtonPlayPause.Content = "继续"; } else { _curVideoPlayBackController.PlayStart(); this.ButtonPlayPause.Content = "暂停"; } } }
/// <summary> /// 毛重视频暂停 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void maoButtonPlayPause_Click(object sender, RoutedEventArgs e) { if (maoVideoPlayBackController != null) { isMaoPause = !isMaoPause; if (isMaoPause) { maoVideoPlayBackController.PlayPause(); this.maoButtonPlayPause.Content = "播放"; } else { maoVideoPlayBackController.PlayStart();//此功能视频底层暂时未实现 this.maoButtonPlayPause.Content = "暂停"; } } }
/// <summary> /// 皮重视频暂停 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void piButtonPlayPause_Click(object sender, RoutedEventArgs e) { if (piVideoPlayBackController != null) { isPiPause = !isPiPause; if (isPiPause) { piVideoPlayBackController.PlayPause(); this.piButtonPlayPause.Content = "播放"; } else { piVideoPlayBackController.PlayStart(); this.piButtonPlayPause.Content = "暂停"; } } }