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