Class ZegoMixerVideoConfig


  • public class ZegoMixerVideoConfig
    extends java.lang.Object
    Mix stream video config object. Configure video frame rate, bitrate, and resolution for mixer task
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int bitrate
      Video bitrate in kbps
      int fps
      Video FPS, cannot be modified after starting a mixer task
      int height
      Video resolution height
      int quality
      Video quality, this value is valid when the video rate control mode parameter is set to constant quality.
      ZegoVideoRateControlMode rateControlMode
      Video bitrate control mode.
      int width
      Video resolution width
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • width

        public int width
        Video resolution width
      • height

        public int height
        Video resolution height
      • fps

        public int fps
        Video FPS, cannot be modified after starting a mixer task
      • bitrate

        public int bitrate
        Video bitrate in kbps
      • quality

        public int quality
        Video quality, this value is valid when the video rate control mode parameter is set to constant quality. The valid value ranges from 0 to 51. The default value is 23. If you want better video quality, lower the quality value based on 23 to test the adjustment. If you want a smaller file size, test the adjustment by increasing the high quality value at the base of 23. Take the file size under the value x as an example. The file size under the value x + 6 is half the size of the file size under the value x, and the file size under the value x-6 is twice the size of the file size under the value x. On web platforms, this property does not take effect.
      • rateControlMode

        public ZegoVideoRateControlMode rateControlMode
        Video bitrate control mode. On web platforms, this property does not take effect.
    • Constructor Detail

      • ZegoMixerVideoConfig

        public ZegoMixerVideoConfig()
      • ZegoMixerVideoConfig

        public ZegoMixerVideoConfig​(int width,
                                    int height,
                                    int fps,
                                    int bitrate)