Changed settings to features
This commit is contained in:
@@ -229,11 +229,15 @@ class JitsiTokenRequest(BaseModel):
|
||||
name: str = Field(..., description="The display name of the user.")
|
||||
email: EmailStr = Field(..., description="The email of the user.")
|
||||
is_moderator: bool = Field(..., description="Whether the user should be a moderator.")
|
||||
# Optional settings for the Jitsi meeting
|
||||
settings: Optional[Dict[str, Union[bool, int]]] = Field(
|
||||
features: Optional[Dict[str, bool]] = Field(
|
||||
None,
|
||||
description="Optional settings for the Jitsi meeting, such as startAudioMuted, startVideoMuted, etc."
|
||||
description="Optional features to enable for the Jitsi meeting, such as livestreaming, recording, etc."
|
||||
)
|
||||
# Optional settings for the Jitsi meeting
|
||||
# settings: Optional[Dict[str, Union[bool, int]]] = Field(
|
||||
# None,
|
||||
# description="Optional settings for the Jitsi meeting, such as startAudioMuted, startVideoMuted, etc."
|
||||
# )
|
||||
|
||||
# A simple endpoint to generate the Jitsi-specific JWT
|
||||
@router.post("/jitsi_token")
|
||||
@@ -265,7 +269,23 @@ async def create_jitsi_jwt(
|
||||
"email": request_data.email,
|
||||
"moderator": "true" if request_data.is_moderator else "false"
|
||||
},
|
||||
"settings": request_data.settings if hasattr(request_data, 'settings') else None,
|
||||
"features": request_data.features if request_data.features else {
|
||||
"livestreaming": False,
|
||||
"recording": False,
|
||||
"transcription": False,
|
||||
"outbound-call": False,
|
||||
"sip-outbound-call": False,
|
||||
},
|
||||
|
||||
# "features": {
|
||||
# "livestreaming": True,
|
||||
# "recording": True,
|
||||
# "transcription": True,
|
||||
# "outbound-call": True,
|
||||
# "sip-outbound-call": True,
|
||||
# },
|
||||
|
||||
# "settings": request_data.settings if hasattr(request_data, 'settings') else None,
|
||||
|
||||
# {
|
||||
# "disableAudioLevels": False,
|
||||
|
||||
Reference in New Issue
Block a user