currentState method
android
获取播放器当时的状态
Implementation
Future<PlayerState> currentState() async {
try {
final stateIntValue = await _channel.invokeMethod("get-current-state");
return (stateIntValue as int).playerStateValue;
} catch (_) {
return PlayerState.unknuwn;
}
}