Skip to main content
Version: 0.0.x

Record Meeting - Python

VideoSDK enables you to record video and audio during meetings, and you can access the recorded files in the developer dashboard or opt to store them in your own cloud storage.

Additionally, VideoSDK offers flexibility in configuring recording layouts. You can achieve this by selecting various prebuilt layouts in the configuration or by providing your own custom template for recording, tailored to your layout preferences.

This guide provides an overview of implementing the start and stop functionality for meeting recording.

important

To initiate automatic recording at the beginning of a session, simply provide the autoStartConfig feature, recording during room creation. For more information on configuring the autoStartConfig, please refer to the provided documentation here.

start_recording()

The start_recording() method, accesible from the meeting class object, is used to initiate the recording of a meeting. This method accepts the following four parameters:

  • 1. webhookUrl (optional): This is the webhook URL where you can listen to events related to the recording, such as the start and stop of recording. It triggers when the recording is completed and stored on the server. You can learn more about webhooks here

  • 2. dirPath (optional): This parameter specifies the path to your cloud bucket where you intend to store the recordings. To enable the storage of recordings in your cloud bucket with VideoSDK, follow this guide (VideoSDK AWS, GCP, Azure Integration)

  • 3. config (optional): This parameter defines how the recording should be conducted

  • 4. transcription (optional): This parameter lets you start post transcription for the recording.

We will going to use RecordingConfig Type. to start recording in the meeting

from videosdk import RecordingConfig, PostTranscriptionConfig

meeting.start_recording(RecordingConfig(
webhook_url= "https://example.com", # Optional
config={

}, # Optional
dir_path="abcd/abcd", # Optional
transcription=PostTranscriptionConfig(
enabled=True
) # Optional
))
...

stop_recording()

The stop_recording() method, accesible from the meeting class object, is used to stop the recording of a meeting.

Example

  meeting.stop_recording()

Event associated with Recording

  • on_recording_state_changed - The on_recording_state_changed() event is triggered whenever the state of meeting recording changes.
from videosdk import MeetingEventHandler
class MyMeetingEventHandler(MeetingEventHandler):
def __init__(self):
super().__init__()

def on_recording_state_changed(self, data):
print("recording state changed", data)

def on_recording_started(self, data):
print("recording started", data)

def on_recording_stopped(self, data):
print("recording stopped", data)
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

API Reference

The API references for all the methods utilized in this guide are provided below.

Got a Question? Ask us on discord