File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export class AudioRenderer {
3131
3232 debugLog ( config ) ;
3333
34- console . assert ( AudioDecoder . isConfigSupported ( config ) ) ;
34+ let support = await AudioDecoder . isConfigSupported ( config ) ;
35+ console . assert ( support . supported ) ;
3536 this . decoder . configure ( config ) ;
3637
3738 // 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 {
3131 output : this . bufferFrame . bind ( this ) ,
3232 error : e => console . error ( e ) ,
3333 } ) ;
34- console . assert ( VideoDecoder . isConfigSupported ( config ) )
34+
35+ let support = await VideoDecoder . isConfigSupported ( config ) ;
36+ console . assert ( support . supported ) ;
3537 this . decoder . configure ( config ) ;
3638
3739 this . init_resolver = null ;
You can’t perform that action at this time.
0 commit comments