File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
- import 'dart:typed_data' ;
3
- import 'dart:js_util' as jsutil;
4
2
import 'dart:html' as html;
3
+ import 'dart:js_util' as jsutil;
4
+ import 'dart:typed_data' ;
5
5
6
6
import 'package:js/js.dart' ;
7
7
Original file line number Diff line number Diff line change
1
+ import 'dart:async' ;
1
2
import 'dart:html' ;
2
3
import 'dart:js' ;
3
4
import 'dart:js_util' as jsutil;
4
5
import 'dart:math' ;
5
6
import 'dart:typed_data' ;
6
- import 'dart:async' ;
7
7
8
8
import '../rtc_transform_stream.dart' ;
9
9
import 'crypto.dart' as crypto;
@@ -173,6 +173,7 @@ class FrameCryptor {
173
173
_ratchetCompleter = null ;
174
174
return ;
175
175
}
176
+ // ignore: unawaited_futures
176
177
ratchetMaterial (currentMaterial).then ((newMaterial) {
177
178
deriveKeys (newMaterial, keyOptions.ratchetSalt).then ((newKeySet) {
178
179
setKeySetFromMaterial (newKeySet, keyIndex ?? currentKeyIndex)
@@ -487,7 +488,7 @@ class FrameCryptor {
487
488
var buffer = frame.data.asUint8List ();
488
489
ByteBuffer ? decrypted;
489
490
KeySet ? initialKeySet;
490
- int initialKeyIndex = currentKeyIndex;
491
+ var initialKeyIndex = currentKeyIndex;
491
492
492
493
if (! enabled ||
493
494
// skip for encryption for empty dtx frames
@@ -540,8 +541,8 @@ class FrameCryptor {
540
541
controller.enqueue (frame);
541
542
return ;
542
543
}
543
- bool endDecLoop = false ;
544
- KeySet currentkeySet = initialKeySet;
544
+ var endDecLoop = false ;
545
+ var currentkeySet = initialKeySet;
545
546
while (! endDecLoop) {
546
547
try {
547
548
decrypted = await jsutil.promiseToFuture <ByteBuffer >(crypto.decrypt (
Original file line number Diff line number Diff line change 1
1
import 'dart:html' ;
2
2
import 'dart:js' as js;
3
- import 'dart:js_util' ;
4
3
import 'dart:typed_data' ;
5
4
6
5
import 'crypto.dart' as crypto;
Original file line number Diff line number Diff line change 1
1
name : dart_webrtc
2
2
description : Use the dart/js library to re-wrap the webrtc js interface of the browser, to adapted common browsers.
3
- version : 1.0.17
3
+ version : 1.1.0
4
4
homepage : https://github.com/flutter-webrtc/dart-webrtc
5
5
6
6
environment :
7
7
sdk : ' >=2.13.0 <4.0.0'
8
8
9
9
dependencies :
10
+ collection : ^1.17.2
10
11
js : ^0.6.4
11
12
platform_detect : ^2.0.7
12
13
webrtc_interface : 1.1.0
You can’t perform that action at this time.
0 commit comments