VideoSubscriptionOptions

Video subscription options.

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;
  }
}

Attributes

streamType
The video stream type that you want to subscribe to:
  • VIDEO_STREAM_HIGH(0): (Default) High-quality video stream, that is, a high-resolution, high-bit-rate video stream.
  • VIDEO_STREAM_LOW(1): Low-quality stream, that is, a low-resolution, low-bitrate video stream.
encodedFrameOnly
Whether to subscribe to encoded video frames only:
  • true: Subscribe to the encoded video data (structured data) only; the SDK does not decode or render raw video data.
  • false: (Default) Subscribe to both raw video data and encoded video data.