Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context Isolation error #337

Open
Samiur-UTI opened this issue May 23, 2023 · 2 comments
Open

Context Isolation error #337

Samiur-UTI opened this issue May 23, 2023 · 2 comments

Comments

@Samiur-UTI
Copy link

For IPC message exchange context isolation is the best practice, but the following error throws up after enabling context isolation:

Uncaught Error: An object could not be cloned.
at Conference._loadConference (Conference.js:176:25)

the error is thrown in the following cone snippet of Conference.js:

// Setup Jitsi Meet Electron SDK on this renderer.
    window.jitsiNodeAPI.setupRenderer(this._api, {
      enableRemoteControl: ENABLE_REMOTE_CONTROL,
      enableAlwaysOnTopWindow: this.props._alwaysOnTopWindowEnabled
 });

After digging further, found the cause which is the setupRenderer function takes in the API native class which is not supported by the structured clone algorithm.
Please comment if anyone know any work around, Thanks!

@wbigert
Copy link

wbigert commented Jan 16, 2024

Could this solution be what you seek? I had the same issues as you had. (Or maybe not, since you are not just looking for screen sharing?)

#358 (comment)

@saghul
Copy link
Member

saghul commented Jan 16, 2024

Not quite, if remote control is used the SDK is not ready for context isolation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants