VideoSubscriptionOptions
视频订阅设置。
Java
public class VideoSubscriptionOptions {
public enum REMOTE_VIDEO_STREAM_TYPE {
REMOTE_VIDEO_STREAM_HIGH,
REMOTE_VIDEO_STREAM_LOW,
}
private REMOTE_VIDEO_STREAM_TYPE streamType;
private Boolean encodedFrameOnly;
public VideoSubscriptionOptions() {}
public VideoSubscriptionOptions(REMOTE_VIDEO_STREAM_TYPE streamType, boolean encodedFrameOnly) {
this.encodedFrameOnly = encodedFrameOnly;
this.streamType = streamType;
}
@CalledByNative
public int getStreamType() {
return streamType.ordinal();
}
@CalledByNative
public boolean isEncodedFrameOnly() {
return encodedFrameOnly;
}
public void setEncodedFrameOnly(boolean encodedFrameOnly) {
this.encodedFrameOnly = encodedFrameOnly;
}
public void setStreamType(REMOTE_VIDEO_STREAM_TYPE streamType) {
this.streamType = streamType;
}
}
streamType
订阅的视频流类型,默认值为 VIDEO_STREAM_HIGH,即订阅视频大流。详见 VideoStreamType。
encodedFrameOnly
是否仅订阅编码后的视频流:
true
:仅订阅编码后的视频数据(结构化数据),SDK 未对该视频数据做解码及渲染。false
:(默认)订阅原始视频数据和编码后的数据。