currentResolution property
Future<TTVideoEngineResolutionType>
get
currentResolution
Resolution === begin When playing with a VideoID video source, the server will send down multiple playback addresses of different resolutions. When the TTVideoEngine receives the fetchedVideoModel callback, you can call the supportedResolutionTypes method to obtain an array of all resolutions. You can use this array for displaying the resolution list and for the logic of selecting clarity. Retrieve video clarity information, which should be obtained after onPrepared.
Implementation
/// Retrieve video clarity information, which should be obtained after onPrepared.
Future<TTVideoEngineResolutionType> get currentResolution async {
int res = await engineInstanceMethodChannel.invokeMethod('getCurrentResolution');
return TTVideoEngineResolutionType.transFromValue(res);
}