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.

Method: EnxRoom.setReceiveVideoQuality(QualityOpt, Callback)

Parameter:

QualityOpt – Video Quality JSON object with the following keys:

  • videoQuality: Enumerated Values: Auto, HD, SD, LD. Set to Auto to allow EnableX to choose the optimum quality dynamically based on the available bandwidth.
  • streamType: Enumerated Values: talker, canvas
var Quality = {
     "videoQuality": "", 
     "streamType":  "talker"
 };

 room.setReceiveVideoQuality(Quality, function (result) {
         if(result.result == 0) {
            // Success
         }
         else {
            // Faileld - result.message
         }
 });