removeCallback

The removeCallback method removes the callback that has been added by the addCallback method.


Syntax

sas.video.removeCallback(event, function);

Parameters

Name Type Scope Description
event string required The name of the event
function object required The function to be called

Samples


sas.video.removeCallback('adBegin', onAdBegin);
sas.video.removeCallback('adBreakBegin', onAdBreakBegin);
sas.video.removeCallback('adEnd', onAdEnd);
sas.video.removeCallback('adError', onAdError);