SimulcastStreamConfig
视频小流的配置。
Java
public class SimulcastStreamConfig {
public VideoEncoderConfiguration.VideoDimensions dimensions;
public int bitrate;
public int framerate;
public SimulcastStreamConfig() {
this.dimensions = new VideoEncoderConfiguration.VideoDimensions(-1, -1);
this.bitrate = -1;
this.framerate = 5;
}
public SimulcastStreamConfig(
VideoEncoderConfiguration.VideoDimensions dimensions, int bitrate, int framerate) {
this.dimensions = dimensions;
this.bitrate = bitrate;
this.framerate = framerate;
}
}
dimensions
bitrate
视频码率 (Kbps)。该参数无需设置,SDK 会根据你设定的视频分辨率和帧率自动匹配最合适的码率。
framerate
视频帧率 (fps)。默认值为 5。