CallClient class is the primary interface for managing Daily video calls in Python. It handles joining and leaving calls, managing participants, controlling media inputs and outputs, and coordinating recordings and live streams.
Creating a CallClient
Create aCallClient instance with an optional event handler:
Lifecycle Methods
join()
Join a Daily meeting with a meeting URL and optional configuration:leave()
Leave the current meeting:release()
Release resources associated with the client. Always call this when done:Media Control Methods
update_inputs()
Update camera and microphone settings:update_publishing()
Control which tracks are being published to the call:update_subscriptions()
Control which remote participants’ tracks you’re subscribing to:Participant Management
participants()
Get information about all participants in the call:update_remote_participants()
Update settings for remote participants (requires owner permissions):eject_remote_participants()
Remove participants from the call (requires owner permissions):Recording and Streaming
start_recording()
Start cloud recording:stop_recording()
Stop an active recording:start_live_stream_with_rtmp_urls()
Start live streaming to RTMP endpoints:stop_live_stream()
Stop an active live stream:Transcription
start_transcription()
Start real-time transcription:stop_transcription()
Stop active transcription:Complete Example
Here’s a complete example of usingCallClient to join a call, send audio, and leave:
Related Resources
Event Handling
Learn how to respond to call events
Virtual Devices
Work with virtual cameras and microphones