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 1
1
# Changelog
2
2
3
3
--------------------------------------------
4
+ [ 1.3.0] - 2025-09-09
5
+
6
+ * Data packet cryptor interface.
7
+
4
8
[ 1.2.3] - 2025-04-29
5
9
6
10
* 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 1
1
library webrtc_interface;
2
2
3
+ export 'src/data_packet_cryptor.dart' ;
3
4
export 'src/enums.dart' ;
4
5
export 'src/factory.dart' ;
5
6
export 'src/frame_cryptor.dart' ;
Original file line number Diff line number Diff line change 1
1
name : webrtc_interface
2
2
description : WebRTC Interface for Dart-Web/Flutter.
3
- version : 1.2.3
3
+ version : 1.3.0
4
4
homepage : https://flutter-webrtc.org
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments