configResolutionBeforeStart method

Future<void> configResolutionBeforeStart(
  1. TTVideoEngineResolutionType resolution
)

设置起播的清晰度:在播放之前预设值清晰度信息,如果没有对应的清晰度档位,会自动降级遍历支持清晰度列表,查找合适的清晰度档位

Implementation

Future<void> configResolutionBeforeStart(TTVideoEngineResolutionType resolution) async {
  await engineInstanceMethodChannel.invokeMethod('configResolution', resolution.idx);
}