The EnxRoom.setReceiveVideoQuality() method allows you to set the desired video quality at the available bandwidth for Remote Streams to be received at the Client endpoint. You can utilize this API to create UI with enumerated values that allow the user to choose the desired video quality to be received.
Class: EnxRoom
Method: public void setReceiveVideoQuality(JSONObject Quality)
Parameters:
Quality– Video Quality JSON Object with the following keys:videoQuality: Enumerated Values (Auto,HD,SD,LD). Set toAutoto allow the Portal to choose the optimum quality dynamically based on the available bandwidth.streamType: Enumerated Values (talker,canvas)
JSONObject Quality = {
"videoQuality": "HD",
"streamType": "talker"
};
room.setReceiveVideoQuality( Quality );
Error Codes / Exceptions
| Code | Description |
|---|---|
| 5057 | Stream already set with the desired Quality. |
