updateLive2AdsParams

open fun updateLive2AdsParams(adsParams: Map<String, String>)

Sets custom ad targeting parameters for NextGen Live 2.0 SSAI sessions. These parameters are sent in the adsParams field of the session initialization POST body. The SSAI server uses them to replace macros in the ad tag URL.

Must be called before processVideo to take effect.

Example:


Map<String, String> adsParams = new HashMap<>();
adsParams.put("deviceType", "mobile");
adsParams.put("uid", userId);
plugin.updateLive2AdsParams(adsParams);
plugin.processVideo(video);

Parameters

adsParams

the ad targeting parameters to send to the SSAI server