Webhooks and Events - React
Event associated with Recording
- onRecordingStateChanged - The
onRecordingStateChanged()
event is triggered whenever the state of meeting recording changes.
import { Constants, useMeeting } from "@videosdk.live/react-sdk";
function onRecordingStateChanged(data) {
const { status } = data;
if (status === Constants.recordingEvents.RECORDING_STARTING) {
console.log("Meeting recording is starting");
} else if (status === Constants.recordingEvents.RECORDING_STARTED) {
console.log("Meeting recording is started");
} else if (status === Constants.recordingEvents.RECORDING_STOPPING) {
console.log("Meeting recording is stopping");
} else if (status === Constants.recordingEvents.RECORDING_STOPPED) {
console.log("Meeting recording is stopped");
} else {
//
}
}
/** useMeeting hooks events */
const {
/** Methods */
} = useMeeting({
onRecordingStateChanged,
});
important
You can access your recordings on our Dashboard. Additionally, you can access your recordings using our Recording API.
You can access your post transcriptions using our Post Transcription API
Webhook associated with Recording
recording-starting
- A "Recording Starting" webhook is triggered when the recording process for a meeting is initiated.
Example
{
"webhookType": "recording-starting",
"data": {
"meetingId": "jvsg-8rjn-j304",
"sessionId": "613731342f27f56e4fc4b6d0",
},
}
recording-started
- Recording started webhook will be received when successfully recording is started in meeting
Example
{
"webhookType": "recording-started",
"data": {
"meetingId": "jvsg-8rjn-j304",
"sessionId": "613731342f27f56e4fc4b6d0",
},
}
recording-stopping
- A "Recording Stopping" webhook is triggered when the recording end process for a meeting is initiated.
Example
{
"webhookType": "recording-stopping",
"data": {
"meetingId": "jvsg-8rjn-j304",
"sessionId": "613731342f27f56e4fc4b6d0",
},
}
recording-stopped
- Recording stopped webhook will be received when recording is successfully stopped in meeting.
Example
{
"webhookType": "recording-stopped",
"data": {
"meetingId": "jvsg-8rjn-j304",
"sessionId": "613731342f27f56e4fc4b6d0",
"filePath" : "/encoded/videos/62d148951a1eb20029fc9b05.mp4",
"fileUrl" : "https://cdn.videosdk.live/encoded/videos/62d148951a1eb20029fc9b05.mp4",
},
}
recording-failed
- A "Recording Failed" webhook is generated when the recording process encounters an interruption or issue during either the starting or stopping phases.
Example
{
"webhookType": "recording-failed",
"data": {
"meetingId": "jvsg-8rjn-j304",
"sessionId": "613731342f27f56e4fc4b6d0",
},
}
Got a Question? Ask us on discord