AdvanceOptions
视频编码的高级选项。
Java
static public class AdvanceOptions {
public ENCODING_PREFERENCE encodingPreference;
public COMPRESSION_PREFERENCE compressionPreference;
public boolean encodeAlpha;
public AdvanceOptions(ENCODING_PREFERENCE encodingPreference,
COMPRESSION_PREFERENCE compressionPreference, boolean encodeAlpha) {
this.encodingPreference = encodingPreference;
this.compressionPreference = compressionPreference;
this.encodeAlpha = encodeAlpha;
}
public AdvanceOptions() {
this.encodingPreference = ENCODING_PREFERENCE.PREFER_AUTO;
this.compressionPreference = COMPRESSION_PREFERENCE.PREFER_LOW_LATENCY;
this.encodeAlpha = false;
}
}
自从
v4.1.0
encodingPreference
视频编码器偏好。详见 ENCODING_PREFERENCE。
compressionPreference
视频编码的压缩偏好。详见 COMPRESSION_PREFERENCE。
encodeAlpha
当视频帧包含 Alpha 通道数据时,设置是否将 Alpha 数据编码并发送至远端:
true
:对 Alpha 数据进行编码发送。false
:(默认)不对 Alpha 数据进行编码发送。