Start and Stop - Python
This guide will provide an overview of how to implement start and stop Meeting Recording.
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()
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.
API Reference
The API references for all the methods utilized in this guide are provided below.
Got a Question? Ask us on discord