width property Null safety

int width
read / write

Video encoding resolution, a measure of encoding quality, represented by width x height. You can select this profile or maxProfile. The width represents the pixels of the video frame on the horizontal axis. You can enter a custom value.

  • If you set the value to a negative number, the maxProfile setting is used.
  • If you want to customize the resolution, set this profile and maxProfile becomes invalid.

If the width and height of the custom video input are invalid, the width and height are automatically scaled based on maxProfile.

Implementation

int width = 0;