File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE5MDY2MTMyODgsImlzcyI6IkFQSVRzRWZpZFpqclFvWSIsIm5hbWUiOiJuYXRpdmUiLCJuYmYiOjE2NzI2MTMyODgsInN1YiI6Im5hdGl2ZSIsInZpZGVvIjp7InJvb20iOiJ0ZXN0Iiwicm9vbUFkbWluIjp0cnVlLCJyb29tQ3JlYXRlIjp0cnVlLCJyb29tSm9pbiI6dHJ1ZSwicm9vbUxpc3QiOnRydWV9fQ.uSNIangMRu8jZD5mnRYoCHjcsQWCrJXgHCs0aNIgBFY" # noqa
1010
1111# ("livekitrocks") this is our shared key, it must match the one used by your clients
12- SHARED_KEY = b"liveitrocks "
12+ SHARED_KEY = b"livekitrocks "
1313
1414
1515async def draw_cube (source : rtc .VideoSource ):
@@ -45,8 +45,8 @@ async def draw_cube(source: rtc.VideoSource):
4545 [3 , 7 ],
4646 ]
4747
48- frame = rtc .ArgbFrame (rtc .VideoFormatType .FORMAT_ARGB , W , H )
49- arr = np .ctypeslib . as_array (frame .data )
48+ frame = rtc .ArgbFrame . create (rtc .VideoFormatType .FORMAT_ARGB , W , H )
49+ arr = np .frombuffer (frame .data , dtype = np . uint8 )
5050 angle = 0
5151
5252 while True :
@@ -95,7 +95,7 @@ async def draw_cube(source: rtc.VideoSource):
9595
9696
9797async def main (room : rtc .Room ):
98- @room .listens_to ("e2ee_state_changed" )
98+ @room .on ("e2ee_state_changed" )
9999 def on_e2ee_state_changed (
100100 participant : rtc .Participant , state : rtc .EncryptionState
101101 ) -> None :
You can’t perform that action at this time.
0 commit comments