File tree Expand file tree Collapse file tree 4 files changed +43
-1
lines changed Expand file tree Collapse file tree 4 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
33--------------------------------------------
4+ [ 1.3.0] - 2025-09-09
5+
6+ * Data packet cryptor interface.
7+
48[ 1.2.3] - 2025-04-29
59
610* Media recording changes (#31 ).
Original file line number Diff line number Diff line change 1+ import 'dart:typed_data' ;
2+
3+ import 'frame_cryptor.dart' show Algorithm, KeyProvider;
4+
5+ class EncryptedPacket {
6+ EncryptedPacket ({
7+ required this .data,
8+ required this .keyIndex,
9+ required this .iv,
10+ });
11+
12+ Uint8List data;
13+ int keyIndex;
14+ Uint8List iv;
15+ }
16+
17+ abstract class DataPacketCryptor {
18+ Future <EncryptedPacket > encrypt ({
19+ required String participantId,
20+ required int keyIndex,
21+ required Uint8List data,
22+ });
23+
24+ Future <Uint8List > decrypt ({
25+ required String participantId,
26+ required EncryptedPacket encryptedPacket,
27+ });
28+
29+ Future <void > dispose ();
30+ }
31+
32+ abstract class DataPacketCryptorFactory {
33+ Future <DataPacketCryptor > createDataPacketCryptor ({
34+ required Algorithm algorithm,
35+ required KeyProvider keyProvider,
36+ });
37+ }
Original file line number Diff line number Diff line change 11library webrtc_interface;
22
3+ export 'src/data_packet_cryptor.dart' ;
34export 'src/enums.dart' ;
45export 'src/factory.dart' ;
56export 'src/frame_cryptor.dart' ;
Original file line number Diff line number Diff line change 11name : webrtc_interface
22description : WebRTC Interface for Dart-Web/Flutter.
3- version : 1.2.3
3+ version : 1.3.0
44homepage : https://flutter-webrtc.org
55
66environment :
You can’t perform that action at this time.
0 commit comments