@@ -23,6 +23,7 @@ async def create_conference(
2323 ttl : int = None ,
2424 video_codec : VideoCodec = None ,
2525 participants : List [Participant ]= None ,
26+ recording_formats : List [str ]= None ,
2627 ) -> Conference :
2728 r"""
2829 Creates a conference.
@@ -42,6 +43,8 @@ async def create_conference(
4243 (in seconds) and terminating empty conferences.
4344 video_codec: (Optional) Specifies video codecs (VP8 or H264) for a specific conference.
4445 participants: List of the :class:`Participant` object to update the permissions.
46+ recording_formats: If specified, the default RecordingConfiguration is overridden.
47+ Specifies the recording format. Valid values are 'mp3' and 'mp4'.
4548
4649 Returns:
4750 A :class:`Conference` object.
@@ -60,13 +63,18 @@ async def create_conference(
6063 add_if_not_none (parameters , 'ttl' , ttl )
6164 add_if_not_none (parameters , 'videoCodec' , video_codec )
6265
66+ if recording_formats is not None and len (recording_formats ) > 0 :
67+ parameters ['recording' ] = {
68+ 'format' : recording_formats
69+ }
70+
6371 payload = {
6472 'ownerExternalId' : owner_external_id ,
6573 'parameters' : parameters ,
6674 }
6775 add_if_not_none (payload , 'alias' , alias )
6876
69- if not participants is None and len (participants ) > 0 :
77+ if participants is not None and len (participants ) > 0 :
7078 obj_participants = { }
7179
7280 for participant in participants :
0 commit comments