caution
Record Meeting
Record meeting allows participants to record video & audio during the meeting. The recording files are available in developer dashboard. Any participant can start / stop recording any time during the meeting.
This guide will provide an overview of how to implement start and stop Meeting Recording.
- Start Recording - By using
startRecording()
function, a participant can start meeting recording. - Stop Recording - By using
stopRecording()
function, a participant can stop meeting recording.
Start And Stop Recording
- JavaScript
- React
- ReactNative
- Android
- IOS
- Flutter
const onPress = () => {
// Start Recording
meeting?.startRecording(webhookUrl, awsDirPath);
// Stop Recording
meeting?.stopRecording();
};
const onPress = () => {
// Start Recording
meeting?.startRecording(webhookUrl, awsDirPath);
// Stop Recording
meeting?.stopRecording();
};
const onPress = () => {
// Start Recording
meeting?.startRecording();
// Stop Recording
meeting?.stopRecording();
};
// TODO: change webhookUrl
String webhookUrl = "<webhook-url-here>";
// keep track of recording
boolean recording = false;
findViewById(R.id.btnRecording).setOnClickListener(view -> {
if (!recording) {
meeting.startRecording(webhookUrl);
} else {
meeting.stopRecording();
}
});
/// webhook url
private let recordingWebhookUrl = "<webhook-url-here>"
/// keep track of recording
private var recordingStarted = false
@IBAction func recordButtonTapped(_ sender: Any) {
if !recordingStarted {
// start recording
meeting?.startRecording(webhookUrl: recordingWebhookUrl)
} else {
// stop recording
meeting?.stopRecording()
}
}
// Start Recording
meeting.startRecording('<webhookUrl>');
// Stop Recording
meeting.stopRecording(),
Events
-
recording-started - Whenever any participant start meeting recording, then
recording-started
event will trigger. -
recording-stopped - Whenever any participant stop meeting recording, then
recording-stopped
event will trigger.
- JavaScript
- React
- ReactNative
- Android
- IOS
- Flutter
meeting.on("recording-started", () => {
console.log("Recording Started");
});
meeting.on("recording-stopped", () => {
console.log("Recording Stopped");
});
import { useMeeting } from "@videosdk.live/react-sdk";
/** useMeeting hooks events */
const {
/** Methods */
} = useMeeting({
onRecordingStarted: () => {
console.log("Recording Started");
},
onRecordingStopped: () => {
console.log("Recording Stopped");
},
});
import { useMeeting } from "@videosdk.live/react-native-sdk";
/** useMeeting hooks events */
const {
/** Methods */
} = useMeeting({
onRecordingStarted: () => {
console.log("Recording Started");
},
onRecordingStopped: () => {
console.log("Recording Stopped");
},
});
new MeetingEventListener() {
@Override
public void onRecordingStarted() {
recording = true;
// TODO: show indication that meeting recording is started.
}
@Override
public void onRecordingStopped() {
recording = false;
// TODO: show indication that meeting recording is stopped.
}
}
/// Called after recording starts
func onRecordingStarted() {
recordingStarted = true
// show indication that meeting recording is started.
}
/// Caled after recording stops
func onRecordingStopped() {
recordingStarted = false
// hide meeting recording indication.
}
meeting.on("recording-started", () {
print("meeting recording started");
});
//
meeting.on("recording-stopped", () {
print("meeting recording stopped");
});
Got a Question? Ask us on discord