Video SDK Type and Version
zoom/videosdk Web Version 2.2.0 and 2.2.5
Description
We’re using stream.createProcessor
to implement our custom virtual background feature. However, starting from version 2.2.0 of the Video SDK, we began encountering a problem with this functionality.
When a user joins a call for the second time, we receive the following error:
{ type: 'INVALID_PARAMETERS', reason: 'You have already created this Processor', errorCode: 6121 }
It seems that the processor is created correctly the first time, but on subsequent attempts to join a call, the SDK considers that the processor is already created and does not allow us to create it again. The issue is that there is no method available in the SDK to destroy or reset the processor, so the only workaround is to refresh the entire page.
We also tried saving the created processor from the first call and reusing it in later calls, but that approach doesn’t work either.
This issue is currently blocking us from upgrading to the latest versions of @zoom/videosdk. We would appreciate any guidance or a fix for this problem.
Error?
{ type: 'INVALID_PARAMETERS', reason: 'You have already created this Processor', errorCode: 6121 }
How To Reproduce
Steps to reproduce the behavior including:
- Start a Zoom call using a custom video processor with
@zoom/videosdk
version 2.2.0 or above.
Example code:
const processor = await this.stream.createProcessor(videoProcessorOptions);
await this.stream.addProcessor(processor);
-
The first call works as expected. End the call.
-
Attempt to join a new call and run the same processor setup code again.
-
You will receive the error