Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions livekit-api/livekit/api/access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class VideoGrants:
room_join: Optional[bool] = None
room: str = ""

# allows forwarding participant to room
destination_room: Optional[str] = None

# permissions within a room
can_publish: bool = True
can_subscribe: bool = True
Expand Down
2 changes: 1 addition & 1 deletion livekit-api/livekit/api/room_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def forward_participant(self, forward: ForwardParticipantRequest) -> None:
SVC,
"ForwardParticipant",
forward,
self._auth_header(VideoGrants(room_admin=True, room=forward.room)),
self._auth_header(VideoGrants(room_admin=True, room=forward.room, destination_room=forward.destination_room)),
ForwardParticipantResponse,
)

Expand Down
Loading