You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
as soon as we get the track in 2nd window
isn't it possible to share the MEdiaStreamTrack via remote.getGlobal?
The text was updated successfully, but these errors were encountered: