directory

Set video config

If you want configure streaming video, we allowing to select appropriate parameters such as video encoding format, bitrate, resolution, and frame rate based on your needs.

By using ZegoUIKitPrebuiltCallConfig.videoConfig, it becomes easy to configure.

Here is an example:

Copy
Copy

And, we have compiled a set of common preset configurations for these parameters. You can use these common configurations or customize the specific parameters yourself.

ZegoVideoConfigPreset

Capture resolution\ (Width × Height)

Encoder resolution\ (Width × Height)

Frame rate\ (fps)

Bitrate\ (kbps)

Preset180P

180 × 320

180 × 320

15

300

Preset270P

270 × 480

270 × 480

15

400

Preset360P

360 × 640

360 × 640

15

600

Preset540P

540 × 960

540 × 960

15

1200

Preset720P

720 × 1280

720 × 1280

15

1500

Preset1080P

1080 × 1920

1080 × 1920

15

3000

Preset2K

1440 × 2560

1440 × 2560

15

6000

Preset4K

2160 × 3840

2160 × 3840

15

12000

Additionally, implemented a traffic control mechanism that automatically adjusts the video configuration based on real-time network traffic conditions, ensuring a smooth viewing experience even in poor network conditions.