getWidth method

Future<int> getWidth()

Get the width of the currently playing video.

Implementation

Future<int> getWidth() async {
  if (_isNeedDisposed) return 0;
  await _initPlayer.future;
  final result = await _mc!.invoke<int>('getWidth');
  return result ?? 0;
}