File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export class AudioRenderer {
31
31
32
32
debugLog ( config ) ;
33
33
34
- console . assert ( AudioDecoder . isConfigSupported ( config ) ) ;
34
+ let support = await AudioDecoder . isConfigSupported ( config ) ;
35
+ console . assert ( support . supported ) ;
35
36
this . decoder . configure ( config ) ;
36
37
37
38
// Initialize the ring buffer between the decoder and the real-time audio
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ export class VideoRenderer {
31
31
output : this . bufferFrame . bind ( this ) ,
32
32
error : e => console . error ( e ) ,
33
33
} ) ;
34
- console . assert ( VideoDecoder . isConfigSupported ( config ) )
34
+
35
+ let support = await VideoDecoder . isConfigSupported ( config ) ;
36
+ console . assert ( support . supported ) ;
35
37
this . decoder . configure ( config ) ;
36
38
37
39
this . init_resolver = null ;
You can’t perform that action at this time.
0 commit comments