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;
  final result = await _mc!.invoke<int>('getHeight');
  return result ?? 0;
}