getState method
@detail api
@brief Get the state of the media player.
@return The current state of the media player. See ByteRTCPlayerState{@link #ByteRTCPlayerState}.
@note You can call this method after the creating a ByteRTCMediaPlayer instance.
Implementation
FutureOr<ByteRTCPlayerState> getState() async {
return await nativeCall('getState', []);
}