Package com.zego.zegoliveroom.constants
Class ZegoAvConfig
- java.lang.Object
-
- com.zego.zegoliveroom.constants.ZegoAvConfig
-
public final class ZegoAvConfig extends java.lang.Object
直播参数设置。Copyright © 2017 Zego. All rights reserved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZegoAvConfig.Level
设置级别.
-
Field Summary
Fields Modifier and Type Field Description static int[]
VIDEO_BITRATES
预设的码率.static int[]
VIDEO_FPSS
预设的帧率.
-
Constructor Summary
Constructors Constructor Description ZegoAvConfig(int level)
构造函数.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVideoBitrate()
获取视频码率.int
getVideoCaptureResolutionHeight()
获取视频采集分辨率的高度.int
getVideoCaptureResolutionWidth()
获取视频采集分辨率的宽度.int
getVideoEncodeResolutionHeight()
获取视频编码输出分辨率的高度.int
getVideoEncodeResolutionWidth()
获取视频编码输出分辨率的宽度.int
getVideoFPS()
获取视频帧率.void
setVideoBitrate(int videoBitrate)
设置视频码率.void
setVideoCaptureResolution(int width, int height)
设置视频采集分辨率.void
setVideoEncodeResolution(int width, int height)
设置视频编码输出分辨率.void
setVideoFPS(int videoFPS)
设置视频帧率,推流端设置60帧,拉流端生效需要联系技术支持
-
-
-
Constructor Detail
-
ZegoAvConfig
public ZegoAvConfig(int level)
构造函数.- Parameters:
level
- 配置级别 seeZegoAvConfig.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:
- 视频采集分辨率的高度
-
-