SetConfigs [2/3]

Configures the player.

bool SetConfigs(PlayerConfig* config, Error *err = nullptr)
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, etc.

Timing

This method must be called after calling Player.

Parameters

config
Player configuration object. See PlayerConfig.
err
Output parameter, status or error information. See Error.

Return Values

Whether the configuration succeeds:
  • true: Configuration succeeds.
  • false: Configuration fails.