30 Commits

Author SHA1 Message Date
Hiroshi Horie
d14a6c5832 Fix typos in docs and code (#944) 2025-12-12 18:57:51 +09:00
td
1a931238fa fix: sif frame enqueing with e2ee (#918)
the original one got reverted in
f7384fb2e7

cc: @cloudwebrtc
2025-11-18 17:38:59 +08:00
xianshijing-lk
5b0e9f139f fix the warnings and remove the ignorance from flutter analyze (#906)
This PR removed some of the error ignorances from analysis_options.yaml
and fixed the warnings.

---------

Co-authored-by: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com>
2025-10-30 23:00:58 +07:00
xianshijing-lk
438d60b23e move the accessToken to header (#891)
Move the access_token to header in the format of 'Authorization':
'Bearer $token'

---------

Co-authored-by: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com>
2025-10-20 18:25:53 +07:00
CloudWebRTC
02c2f950c0 feat: Add E2EE support for H265. (#864) 2025-10-18 09:02:17 +08:00
CloudWebRTC
f7384fb2e7 feat: Data Packet Cryptor. (#873) 2025-10-16 10:04:17 +08:00
Hiroshi Horie
f57641b7b8 chore: update format (#889) 2025-10-14 20:24:51 +08:00
Hiroshi Horie
29b2e8d2af Update lint package & rules (#869)
* Updated lints package to 6.0.0.
* New rules: `discarded_futures` & `prefer_final_locals`.
* Did some quick maintenance to some lint errors.

There's quite a few "disregarded futures" (Un-awaited Futures) we should
clean them up.
2025-09-08 15:48:10 +08:00
Hiroshi Horie
7fd949da87 Use UTC timestamps (#868)
The timestamp() constructor uses now() + UTC.
2025-09-08 12:56:32 +08:00
CloudWebRTC
fb84e272cc fix e2ee issue for chrome rejoin (#849)
fix https://github.com/livekit/client-sdk-flutter/issues/834
2025-08-21 10:51:09 +08:00
td
9728dc7f07 fix: sif frame enqueing with e2ee (#822) 2025-07-17 12:19:16 +08:00
td
9003642474 fix: sif detection for e2ee (#788)
* fix: sif detection for e2ee

* fix: ndk version for example app in ci
2025-05-26 08:38:16 +08:00
td
754ceead59 fix: interop for encode and decode function in e2ee cryptor (#785) 2025-05-19 17:42:38 +08:00
jezell
7c97a29c52 Support for WASM builds (#593)
* fix conditionals to support wasm

* remove js_util

* fix wasm blocking issues

* revert name change

* cleanup analysis warnings

* sort imports

* copy e2ee

* fix ref to dart_webrtc crypto

* fix compile with --wasm.

* import sorter.

* bump deps version.

* fix.

* revert changes.

* fix analyzer.

* fix

---------

Co-authored-by: Jesse Ezell <jesse.ezell@timu.com>
Co-authored-by: cloudwebrtc <duanweiwei1982@gmail.com>
2025-02-23 10:59:28 +08:00
td
4d6e1f5458 fix: ratchet on a single frame until ratchetWindowSize (#544) 2024-07-03 22:02:05 +08:00
td
f03e0c2cbf chore: add more info to cryptorState changes (#537) 2024-06-25 21:55:23 +08:00
td
8c74825181 fix: ignore unable to parse frames completely (#530) 2024-06-12 12:57:45 +08:00
td
20e6217768 Framecryptor decrypting fixes (#520)
* fix: decrypting audio when e2ee

* chore: let linter run on web/*.dart files

* feat: add voiceIsolation support
2024-06-05 19:00:27 +08:00
CloudWebRTC
7a1d23d373 feat: add keyRingSize/discardFrameWhenCryptorNotReady to KeyProviderOptions. (#493)
* feat: add keyRingSize/discardFrameWhenCryptorNotReady to KeyProviderOptions.

* update.

* bug fix.

* bump version.

* update e2ee worker js.

* bump version for flutter-webrtc.
2024-04-09 11:14:07 +08:00
jezell
8ee3341124 update to package:web (#484)
* update to package:web

* Update pubspec.yaml

* fix issue for web e2ee.

* import_sorter.

* revert license.

---------

Co-authored-by: Jesse Ezell <jesse.ezell@timu.com>
Co-authored-by: CloudWebRTC <duanweiwei1982@gmail.com>
2024-04-08 20:51:05 +08:00
td
7df59f3041 fix: use latest key index for new rtp nodes (#476)
* fix: use latest key index for new rtp nodes

* revert import.

---------

Co-authored-by: cloudwebrtc <duanweiwei1982@gmail.com>
2024-03-04 20:13:49 +08:00
CloudWebRTC
e73eaffdb0 E2EE improvement. (#461)
* support getKeyIndex for encryptors.

* Improve E2EE, make events consistent with native.

* update e2ee.worker.dart.js.
2024-02-05 13:15:02 +08:00
CloudWebRTC
6323ff7f34 bug fixes for e2ee (Web/Firefox). (#453)
* bug fixes for e2ee.

* fix set/ratchet for SharedKey.

* disable red when E2EE enabled.
2024-01-23 19:44:06 +08:00
CloudWebRTC
4f896bae03 [E2EE] add key handler for web worker. (#449)
* add key handler.

* Update e2ee.sfi_guard.dart

* Update e2ee.keyhandler.dart

* Update crypto.dart

* Update e2ee.logger.dart
2024-01-15 11:49:26 +08:00
CloudWebRTC
7414f0607b update Copyright 2023 => 2024. (#452)
* update Copyright 2023 => 2024.

* Update NOTICE

* revert.
2024-01-15 11:15:56 +08:00
CloudWebRTC
86e43b3175 fix e2ee worker compile for flutter web. (#408) 2023-11-25 11:22:39 +08:00
David Zhao
7eaa3ec0af Add license headers (#325) 2023-07-27 19:35:23 -07:00
CloudWebRTC
49f22057f4 fix: Skip decryption when ratchet exceeded. (#318) 2023-07-13 22:02:06 +08:00
cloudwebrtc
79a2351ee8 fix: Correctly detect server injection frame for flutter web. 2023-04-28 10:40:00 +08:00
CloudWebRTC
26947e96d6 e2ee. (#226)
* chore: e2ee.

* update.

* update.

* update.

* update.

* chore: Use feat/frame-encryption branch of flutter-webrtc.

* chore: Add E2EEKEY defines for dart environment, and e2ee switch.

* Add encodedInsertableStreams to RTCConfiguration.

* update.

* feat: Add e2ee indicator for Participant.

* feat: add e2ee worker js for flutter web.

* dart format.

* remove unused file.

* fix flutter analyze .

* update.

* update.

* add: indicate for decryption failure, and string key.

* remove .lock files.

* update.

* update.

* update e2ee.worker for web.

* feat: support setCodecPreferences.

* state TrackE2EEStateEvent.

* fix wrong import interface from dart_webrtc.

* update.

* update.

* update.

* update.

* update pubspec.lock.

* chore: update protocol and add EncryptionType for Participant.

* Update lib/src/e2ee/options.dart

Co-authored-by: Théo Monnom <theo.monnom@outlook.com>

* fix typo.

* revert changes for internal import.

* Add _cleanUp() for previous room.

* Add e2ee supports detection method for native/web.

* Remove redundant overriding methods.

* dart format.

* Add e2ee.worker code and deployment docs.

* chore: remove duplicate words.

* chore: using Pbkdf2 derive the key.

* Update pubspec.yaml

* fix e2ee for safari.

* fix key length.

* update e2ee.worker.dart.js.

* fix.

* update proto.

* update.

* chore: add simulate for rachetKey.

* update.

* chore: key ratchet for flutter web.

* update.

* update.

* update.

* chore: key ratchet export for web.

* bump version for xframeworks.

* update.

* chore: some changes for key safety ratcheting.

* update.

* fix typo.

* update.

* rename.

* magic bytes for web.

* bump version for flutter-webrtc.

* fix analyzer.

---------

Co-authored-by: Théo Monnom <theo.monnom@outlook.com>
2023-04-27 17:54:32 +08:00