Player Management
Besides the already mentioned addPlayer method, the _play.control Namespace offers various Methods to control all current Instance (i.e. Players), controlled by nexxPLAY. The most obvious Method of this Scenario, the various "addPlayer*" Methods have already been discussed.
Instance Management
//verify, that the SDK is ready to use
_play.control.sdkIsReady()//get an Array of all Container Elements, that currently hold a nexxPLAY Instance.
_play.control.getInstances()//check, if there are any active nexxPLAY Instances on the current Page.
_play.control.hasActiveInstances()//will pause all Instances (except the exceptContainer).
//if canBeResumed is set to true, the Players can be resumed.
_play.control.pauseAll(exceptContainer, canBeResumed)//will continue all Instances (except the exceptContainer), if they have been paused (and are allowed to continue).
_play.control.continueAll(exceptContainer)//will remove the Player Instance from the current Container to a new Container
_play.control.moveToContainer(CONTAINER-ID,TARGET-CONTAINER-ID)//will update a Configuration, defined by Player Configuration
_play.control.updateConfiguration(CONTAINER-ID,SETTING-KEY,UPDATED-VALUE)//will remove the nexxPLAY Instance from the given Container.
//it stopCasting is set to true and the Player is currently casting, the Casting will be stopped too
_play.control.removePlayer(CONTAINER-ID,stopCasting)Instance Properties
Access Media Data of the Instance
SDK Settings
The following SDK Methods are rarely needed. They are mentioned for special Cases and should only be used, if advised by 3Q nexx.
User Preferences, GDPR and Consent Management
In any TCF 2.0 compliant Frontends, nothing has to be done manually, if the Player needs ConsentStrings for Ad Requests. It is fully handled by the Player itself.
For manual Purposes though, Consent Management can be applied by calling the following Functionalities:
Please compare this with the general Description of GDPR and TCF 2.0 here:
GDPR and TCF 2.0Last updated