getHeight method

Future<int> getHeight()

Get the height of the currently playing video.

获得当前播放视频的高度

Implementation

Future<int> getHeight() async {
  if (_isNeedDisposed) return 0;
  await _initPlayer.future;
  IntMsg intMsg = await _vodPlayerApi.getHeight(PlayerMsg()..playerId = _playerId);
  return intMsg.value ?? 0;
}