setConfigs [2/3]
Sets player configuration.
public void setConfigs(PlayerConfig config) throws RteException
- Since
- Available since v4.4.0.
You can call this method to configure the player, such as enabling autoplay, subscribing to video streams with different resolutions and bitrates.
Timing
You must call this method after calling Player.
Parameters
- config
- Player configuration object. See PlayerConfig.
Exceptions
When the method call fails, the SDK throws an RteException containing the corresponding error information. You need to catch and handle the exception.