There are a number of PostMessages that are fired throughout the non-panel video process (https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage) These will work in all modern browsers.
Each event will include the following data:
Event Data
var returnData = {event:"EVENT_NAME"}; |
Events can be listened to using the following code:
Event listening
<script> |
Default
The following PostMessages will be sent:
Event | Description |
|
Widget has been initialized and is ready for use. |
|
Connection to our streaming server was lost. |
|
Detecting active web camera. |
|
Web camera has been found. |
|
Error state when no camera is found. |
|
Microphone has been found. |
|
Unable to find a microphone. |
|
Camera access has been denied by user. |
|
Camera and microphone have been found and are configured correctly. |
|
User has started recording. |
|
User has stopped recording. |
|
User has cancelled the recording. |
|
User has started the playback of their recording. |
|
User has paused the playback of their recording. |
|
The recording is being uploaded to Voxpopme servers. |
|
The recording has been successfully uploaded and submitted. |
|
Video uploading has failed. |
|
The video has finished processing and uploading. |
|
Recording has been uploaded and saved successfully to the Voxpopme platform. |
|
User has clicked the continue button. |
|
No more responses can be recorded on this project because the target total responses count has been reached, or the project has expired. |
|
Project is not currently active, i.e in draft, pending, scheduled. |
Comments
0 comments
Article is closed for comments.