isPlaying method

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

Whether the video is currently playing.

视频是否处于正在播放中

Implementation

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