getPlayerState method

Future<VLCState> getPlayerState()

Get player state.

Implementation

Future<VLCState> getPlayerState() async {
  await _ensureInitialized();
  if(_isNeedDisposed) return VLCState.Stopped;
  var i = await _vlcApi.getPlayerState(_textureId);
  return VLCState.values[i];
}