Record Meeting - Android
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​
- Kotlin
- Java
// TODO: change webhookUrl
val webhookUrl = "<webhook-url-here>"
// keep track of recording
val recording = false
findViewById<View>(R.id.btnRecording).setOnClickListener { view: View? ->
if (!recording) {
meeting!!.startRecording(webhookUrl)
} else {
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();
}
});
Events​
- onRecordingStateChanged - A
onRecordingStateChanged
event will be triggered any time the recording state of a meeting changes.
- Kotlin
- Java
object : MeetingEventListener() {
override fun onRecordingStateChanged(recordingState: String) {
when (recordingState) {
"RECORDING_STARTING" -> {
Log.d("onRecordingStateChanged", "Meeting recording is starting")
}
"RECORDING_STARTED" -> {
Log.d("onRecordingStateChanged", "Meeting recording is started")
}
"RECORDING_STOPPING" -> {
Log.d("onRecordingStateChanged", "Meeting recording is stopping")
}
"RECORDING_STOPPED" -> {
Log.d("onRecordingStateChanged", "Meeting recording is stopped")
}
}
}
}
new MeetingEventListener() {
@Override
public void onRecordingStateChanged(String recordingState) {
switch (recordingState) {
case "RECORDING_STARTING":
Log.d("onRecordingStateChanged", "Meeting recording is starting");
break;
case "RECORDING_STARTED":
Log.d("onRecordingStateChanged", "Meeting recording is started");
break;
case "RECORDING_STOPPING":
Log.d("onRecordingStateChanged", "Meeting recording is stopping");
break;
case "RECORDING_STOPPED":
Log.d("onRecordingStateChanged", "Meeting recording is stopped");
break;
}
}
}
Got a Question? Ask us on discord