setConfigs [2/3]
Sets the player configurations.
public void setConfigs(PlayerConfig config) throws RteException;
- Since
- v4.5.0
You can call this method to configuer the player, such as enabling autoplay and subscribing to video streams of a different resolution and bitrate.
Call timing
Call this method after Player.
Restrictions
None.
Parameters
- config
- The player configuration object: PlayerConfig.
Exception
If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.