iframe src={videoIframeUrl} title="Video Health Analysis"
Iframe Messages:
window.addEventListener('message', function (result) {s
if (result.origin === 'https://panel.bizbaz.tech') {
switch (result.data.action){
case 'onAnalysisStart' :{
console.log("started")
break;
}
case 'onAnalysisFinished' :{
if(result.data.analysisData){
// success
console.log(result.data.analysisData)
console.log(result.data.analysisData.scoreId)
}
break;
}
case 'failedToLoadPage':{
break;
}
}
}
});
Webhook
You can configure a dedicated endpoint on your server to receive the results of the facial scan in addition to the UI. We will send the following results to the provided endpoint.