Skip to content
Merged
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
6 changes: 3 additions & 3 deletions examples/primitives/e2ee.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import os

from dotenv import load_dotenv

Expand All @@ -17,15 +18,14 @@
async def entrypoint(ctx: JobContext):
e2ee_config = rtc.E2EEOptions(
key_provider_options=rtc.KeyProviderOptions(
shared_key=b"my_shared_key",
# ratchet_salt=b"my_salt",
shared_key=os.environ["LIVEKIT_E2EE_KEY"].encode(),
),
encryption_type=rtc.EncryptionType.GCM,
)

# Connect to the room with end-to-end encryption (E2EE)
# Only clients possessing the same shared key will be able to decode the published tracks
await ctx.connect(e2ee=e2ee_config)
await ctx.connect(encryption=e2ee_config)


if __name__ == "__main__":
Expand Down
Loading