Instreamatic
Search…
Advanced Embedding
On this page, you can find additional customization options for embedding.
Our script can report multiple events while working. Based on those events you can set up an additional layer of customization and interactivity.

Events list

Event name
Event description
onInit
The script is launched
onRecordStart
The recording is started
onRecordStop
The recording is stopped
onRecordSent
The recording is submitted
onPermissionDenied
It will be fired if microphone access is denied
onOffline
It will be fired if a client is offline
onOnline
It will be fired if a client is back online
onError
It will be fired in case of unexpected error
To track the above events, add the event listener. See below:
window.addEventListener('message', (event) => {
console.log(event.data)
})
Here’s a full usage example:
window.addEventListener('message', (event) => {
if (event.data === 'onRecordStart') {
console.log('Record Started')
}
})
Last modified 4mo ago
Copy link