⚡️(frontend) use initial processor reference to avoid track recreation
Leverage reference to initial processor choice to prevent unnecessary preview track recreation when updating processor options. Improves performance by maintaining existing track instance during processor updates instead of creating new tracks, eliminating visual interruptions and reducing resource overhead.
This commit is contained in:
committed by
aleb_the_flash
parent
cfa68d0eb4
commit
6ca73c665b
@@ -146,10 +146,9 @@ export const Join = ({
|
||||
video: !!initialUserChoices.current &&
|
||||
initialUserChoices.current?.videoEnabled && {
|
||||
deviceId: initialUserChoices.current.videoDeviceId,
|
||||
processor:
|
||||
BackgroundProcessorFactory.deserializeProcessor(
|
||||
processorSerialized
|
||||
),
|
||||
processor: BackgroundProcessorFactory.deserializeProcessor(
|
||||
initialUserChoices.current.processorSerialized
|
||||
),
|
||||
},
|
||||
},
|
||||
onError
|
||||
|
||||
Reference in New Issue
Block a user