clearPlayer

The clearPlayer method destroys the video plugin instance that has been created for a given video player object.
As an example of usage, the method could be useful in the video playlist case when all the movies should have ads. The method should be called after each video, and then the plugin should be registered again.


Syntax

sas.video.clearPlayer(id);

Parameters

Name Type Scope Description
id string required The ID of the player element.
Note: the id needs to be the same as used in the register method

Samples

sas.video.clearPlayer('my-player-id');