Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 2.33 KB

File metadata and controls

33 lines (29 loc) · 2.33 KB

Events

The events for this plugin are available on the video.js player instance.

For example:

player.on('startRecord', function() {
    console.log('started recording!');
});
Event Description
deviceReady The webcam and/or microphone is ready to use.
deviceError User doesn't allow the browser to access the webcam and/or microphone. Check player.deviceErrorCode for the specific error code.
startRecord User pressed the record or camera button to start recording.
progressRecord Fires continuously during recording (until recording is stopped or paused).
stopRecord User pressed the stop button to stop recording.
timestamp Fires continuously during recording whenever a new timestamp is available. Only fires if the timeSlice option is set.
finishRecord The recorded stream or image is available. Inspect the player.recordedData object for the recorded data.
enumerateReady enumerateDevices returned the devices successfully. The list of devices is stored in the player.record().devices array.
enumerateError An error occurred after calling enumerateDevices. Check the player.enumerateErrorCode property for an description of the error.
audioOutputReady Audio output was changed and is now active.
audioBufferUpdate Get real-time AudioBuffer instances from microphone. Fires continuously during audio-only recording (until recording is stopped or paused) when the audioBufferUpdate option is enabled.
enterPIP Entered Picture-in-Picture mode.
leavePIP Left Picture-in-Picture mode.
startConvert The convert plugin started processing the recorded data.
finishConvert The converted data is available. Inspect the player.convertedData object for the converted data.
retry User clicked on retry to take another picture. Only available for image-only mode.
startCountdown The countdown before the recording is about to start.
finishCountdown The countdown before the recording is finished.
abortCountdown The countdown is stopped by a user interaction.