public class VideoSubscriptionOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
encodedFrameOnly
Whether to subscribe to encoded video data only:
- `true`: Subscribe to encoded video data only.
|
private Constants.VideoStreamType |
type
The type of the video stream to subscribe to.
|
| Constructor and Description |
|---|
VideoSubscriptionOptions()
Constructs a VideoSubscriptionOptions object with default values.
|
VideoSubscriptionOptions(Constants.VideoStreamType type)
Constructs a VideoSubscriptionOptions object with the specified video stream
type.
|
VideoSubscriptionOptions(Constants.VideoStreamType type,
boolean encodedFrameOnly)
Constructs a VideoSubscriptionOptions object with the specified video stream
type and encoded frame option.
|
| Modifier and Type | Method and Description |
|---|---|
Constants.VideoStreamType |
getType()
Gets the type of the video stream to subscribe to.
|
boolean |
isEncodedFrameOnly()
Checks whether to subscribe to encoded video data only.
|
void |
setEncodedFrameOnly(boolean encodedFrameOnly)
Sets whether to subscribe to encoded video data only.
|
void |
setType(Constants.VideoStreamType type)
Sets the type of the video stream to subscribe to.
|
java.lang.String |
toString()
Returns a string representation of the VideoSubscriptionOptions object.
|
private Constants.VideoStreamType type
private boolean encodedFrameOnly
public VideoSubscriptionOptions()
public VideoSubscriptionOptions(Constants.VideoStreamType type)
type - The type of the video stream to subscribe to.public VideoSubscriptionOptions(Constants.VideoStreamType type, boolean encodedFrameOnly)
type - The type of the video stream to subscribe to.encodedFrameOnly - Whether to subscribe to encoded video data only.public Constants.VideoStreamType getType()
public void setType(Constants.VideoStreamType type)
type - The video stream type to set.public boolean isEncodedFrameOnly()
public void setEncodedFrameOnly(boolean encodedFrameOnly)
encodedFrameOnly - `true` to subscribe to encoded video data only,
otherwise `false`.public java.lang.String toString()
toString in class java.lang.Object