addCallback The addCallback method enables listening to video events and calling a function when a specific event occurs. Syntax sas.video.addCallback(event, function); Parameters Name Type Scope Description event string required The name of the event. See here a list of the supported events function object required The function to be called Samples sas.video.addCallback('adBegin', onAdBegin); sas.video.addCallback('adBreakBegin', onAdBreakBegin); sas.video.addCallback('adBreakEnd', onAdBreakEnd); sas.video.addCallback('adEnd', onAdEnd); sas.video.addCallback('adError', onAdError); sas.video.addCallback('contentEnd', onContentEnd); sas.video.addCallback('singleError', onSingleError); sas.video.addCallback('videoEnd', onVideoEnd);