setVideoResolution method

Future<void> setVideoResolution(
  1. int resolution
)

Sets the video resolution preference. The resolution parameter defines the desired video height in pixels (for example, 720 for 720p). Android: Sets the preferred maximum video height. The player will adaptively select tracks up to this height. iOS: Selects the matching quality from available options.

Implementation

Future<void> setVideoResolution(int resolution) => _nativeApi.setVideoResolution(resolution);