Skip to content

Commit f3efe1c

Browse files
Update RoomOptions
1 parent e81cc0e commit f3efe1c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

fishjam/api/_fishjam_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class RoomOptions:
5959
"conference", "audio_only", "livestream", "full_feature", "broadcaster"
6060
] = "conference"
6161
"""The use-case of the room. If not provided, this defaults to conference."""
62+
public: bool = False
63+
"""True if livestream viewers can omit specifying a token."""
6264

6365

6466
@dataclass

tests/test_room_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ def test_invalid(self, room_api: FishjamClient):
256256

257257
class TestCreateLivestreamViewerToken:
258258
def test_valid(self, room_api: FishjamClient):
259-
room = room_api.create_room(RoomOptions(room_type=LIVESTREAM))
259+
room = room_api.create_room(RoomOptions(room_type=LIVESTREAM, public=True))
260260
viewer_token = room_api.create_livestream_viewer_token(room.id)
261261

262+
assert room.config.public
262263
assert isinstance(viewer_token, str)
263264

264265
def test_invalid(self, room_api: FishjamClient):

0 commit comments

Comments
 (0)