Class ZegoAvConfig


  • public final class ZegoAvConfig
    extends java.lang.Object
    直播参数设置。

    Copyright © 2017 Zego. All rights reserved.

    • Field Detail

      • VIDEO_FPSS

        public static final int[] VIDEO_FPSS
        预设的帧率.
      • VIDEO_BITRATES

        public static final int[] VIDEO_BITRATES
        预设的码率.
    • Constructor Detail

      • ZegoAvConfig

        public ZegoAvConfig​(int level)
        构造函数.
        Parameters:
        level - 配置级别 see ZegoAvConfig.Level
    • Method Detail

      • setVideoFPS

        public void setVideoFPS​(int videoFPS)
        设置视频帧率,推流端设置60帧,拉流端生效需要联系技术支持
        Parameters:
        videoFPS - 帧率
      • setVideoBitrate

        public void setVideoBitrate​(int videoBitrate)
        设置视频码率.
        Parameters:
        videoBitrate - 码率
      • getVideoFPS

        public int getVideoFPS()
        获取视频帧率.
        Returns:
        帧率
      • getVideoBitrate

        public int getVideoBitrate()
        获取视频码率.
        Returns:
        码率
      • setVideoEncodeResolution

        public void setVideoEncodeResolution​(int width,
                                             int height)
        设置视频编码输出分辨率.
        Parameters:
        width - 宽
        height - 高
      • setVideoCaptureResolution

        public void setVideoCaptureResolution​(int width,
                                              int height)
        设置视频采集分辨率.
        Parameters:
        width - 宽
        height - 高
      • getVideoEncodeResolutionWidth

        public int getVideoEncodeResolutionWidth()
        获取视频编码输出分辨率的宽度.
        Returns:
        视频编码输出分辨率的宽度.
      • getVideoEncodeResolutionHeight

        public int getVideoEncodeResolutionHeight()
        获取视频编码输出分辨率的高度.
        Returns:
        视频编码输出分辨率的高度.
      • getVideoCaptureResolutionWidth

        public int getVideoCaptureResolutionWidth()
        获取视频采集分辨率的宽度.
        Returns:
        视频采集分辨率的宽度
      • getVideoCaptureResolutionHeight

        public int getVideoCaptureResolutionHeight()
        获取视频采集分辨率的高度.
        Returns:
        视频采集分辨率的高度