configResolutionAfterStart method
Future<void>
configResolutionAfterStart({
- required TTVideoEngineResolutionType targetResolution,
- void completion(
- bool success,
- TTVideoEngineResolutionType completeResolution
Set the initial playback clarity: Preset the clarity information before playing. If there is no corresponding clarity level, it will automatically downgrade and traverse the list of supported clarity to find a suitable level.
Implementation
Future<void> configResolutionAfterStart(
{required TTVideoEngineResolutionType targetResolution,
void Function(bool success, TTVideoEngineResolutionType completeResolution)? completion}) async {
await engineInstanceMethodChannel.invokeMethod('configResolutionAfterStart', targetResolution.idx);
if (completion != null) {
resolutionConfigCompletion = completion;
}
}