Open
Description
we try to share a MediaStreamTrack across windows using remote.getGlobal
remote.getGlobal('shared').videoStream = desktopstream.getVideoTracks()[0];
in main.js its also still recognized as a MediaStreamTrack
but when we get it in the 2nd window via
let videoTrack = remote.getGlobal('shared').videoStream;
it is a simple object only and no longer a MediaStreamTrack
in 1st windows console we get
callbacks-registry.js:54 Uncaught TypeError: Illegal invocation
at CallbacksRegistry.apply (callbacks-registry.js:54:1)
at remote.js:353:1
at EventEmitter.<anonymous> (remote.js:335:1)
at EventEmitter.emit (node:events:513:28)
at Object.onMessage (node:electron/js2c/renderer_init:2:9240)
as soon as we get the track in 2nd window
isn't it possible to share the MEdiaStreamTrack via remote.getGlobal?
Metadata
Metadata
Assignees
Labels
No labels