What is the use of maxVideoLayer in the Stream property?

To help stream subscribers receive the best video quality subject to the available bandwidth, stream publishers must ensure that their streams carry multiple video layers of different quality. The Auto Bandwidth Detection feature detects the subscriber’s bandwidth and switches to the respective video layer. A local stream can be configured with the following layers by passing the respective value in the maxVideoLayers. 

  • 1 = HD 720p layer only 
  • 2 = HD 720p & SD 480p layers 
  • 3 = HD 720p, SD 480p & LD 240p/180p layers