getPlaybackState method

Future<TTVideoEnginePlaybackState> getPlaybackState()

Implementation

Future<TTVideoEnginePlaybackState> getPlaybackState() async {
  var state =
      await engineInstanceMethodChannel.invokeMethod("getPlaybackState");
  return TTVideoEnginePlaybackState
      .values[state ?? TTVideoEnginePlaybackState.stopped.index];
}