getVideoScale method

Future<ScaleType> getVideoScale()

Get the current video scale type return the current ScaleType used by MediaPlayer

Implementation

Future<ScaleType> getVideoScale() async {
  await _ensureInitialized();
  if(_isNeedDisposed) return ScaleType.SURFACE_BEST_FIT;
  var index = await _vlcApi.getVideoScale(_textureId);
  return ScaleType.values[index];
}