File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " livekit-client " : patch
3
+ ---
4
+
5
+ Create processorElement before processor init
Original file line number Diff line number Diff line change @@ -448,6 +448,10 @@ export default abstract class LocalTrack<
448
448
const unlock = await this . processorLock . lock ( ) ;
449
449
try {
450
450
this . log . debug ( 'setting up processor' , this . logContext ) ;
451
+
452
+ this . processorElement =
453
+ this . processorElement ?? ( document . createElement ( this . kind ) as HTMLMediaElement ) ;
454
+
451
455
const processorOptions = {
452
456
kind : this . kind ,
453
457
track : this . _mediaStreamTrack ,
@@ -461,8 +465,6 @@ export default abstract class LocalTrack<
461
465
if ( this . kind === 'unknown' ) {
462
466
throw TypeError ( 'cannot set processor on track of unknown kind' ) ;
463
467
}
464
- this . processorElement =
465
- this . processorElement ?? ( document . createElement ( this . kind ) as HTMLMediaElement ) ;
466
468
467
469
attachToElement ( this . _mediaStreamTrack , this . processorElement ) ;
468
470
this . processorElement . muted = true ;
You can’t perform that action at this time.
0 commit comments