isPlaying method

  1. @override
Future<bool> isPlaying()
override

Is the video currently playing

视频是否处于正在播放中

Implementation

@override
Future<bool> isPlaying() async {
  if (_isNeedDisposed) return false;
  await _initPlayer.future;
  BoolMsg boolMsg = await _vodPlayerApi.isPlaying(PlayerMsg()..playerId = _playerId);
  return boolMsg.value ?? false;
}