recoveryPause method

void recoveryPause(
  1. FijkPlayer? player
)

复原并暂停

Implementation

void recoveryPause(FijkPlayer? player) {
  if (player?.state == FijkState.started) {
    var duration = player?.value.duration ?? Duration.zero;
    if (duration.inMilliseconds > 1) {
      player?.seekTo(1);
    }
    player?.pause();
  }
}