Skip to content

Commit 208b381

Browse files
authored
E2EE instructions in the example readme (#681)
1 parent 20b348c commit 208b381

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

example/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,19 @@ flutter pub get
1212
# you can autofill URL and TOKEN for first run in debug mode.
1313
flutter run --dart-define=URL=wss://${LIVEKIT_SERVER_IP_OR_DOMAIN} --dart-define=TOKEN=${YOUR_TOKEN}
1414
```
15+
16+
## End-to-End Encryption (E2EE)
17+
18+
The example app supports end-to-end encryption for audio and video tracks. To enable E2EE:
19+
20+
1. Toggle the "E2EE" switch in the connect screen
21+
2. Enter a shared key that will be used for encryption
22+
3. All participants must use the same shared key to communicate
23+
24+
For web support, you'll need to compile the E2EE web worker:
25+
26+
```bash
27+
dart compile js web/e2ee.worker.dart -o example/web/e2ee.worker.dart.js -m
28+
```
29+
30+
Note: All participants in the room must have E2EE enabled and use the same shared key to see and hear each other. If the keys don't match, participants won't be able to decode each other's audio and video.

0 commit comments

Comments
 (0)