in src/apache-unomi-tracker.js [484:499]
sendVideoEvent: function (event, successCallback = undefined, errorCallback = undefined) {
console.debug('[WEM] catching video event');
var videoEvent = wem.buildEvent('video', wem.buildTarget(/** @type {HTMLElement} */(event.target).id, 'video', { action: event.type }), wem.buildSourcePage());
wem.collectEvent(videoEvent, function (xhr) {
console.debug('[WEM] Video event successfully collected.');
if (successCallback) {
successCallback(xhr);
}
}, function (xhr) {
console.error('[WEM] Could not send video event.');
if (errorCallback) {
errorCallback(xhr);
}
});
},