luvolondon / fvtt-module-jitsiwebrtc

Jitsi WebRTC client for FVTT
32 stars 7 forks source link

Share Screen Functionality? #57

Closed mentalic-mutant closed 3 years ago

mentalic-mutant commented 3 years ago

Is it possible?

bekriebel commented 3 years ago

I actually recently added this for testing purposes. This isn't a supported feature and I have no plans of adding additional functionality or a UI around it. However, you can activate screen share with a macro or from the dev console by running game.webrtc.client._shareDesktopTracks(); and return to normal camera/video sharing by running game.webrtc.client._initializeLocal(game.webrtc.client.settings.client);.

The original functionality was added in this commit: https://github.com/luvolondon/fvtt-module-jitsiwebrtc/commit/db9e615959594f7d5318af60ed666c5743659fba

mentalic-mutant commented 3 years ago

I just tried this but it doesnt seem to work. Error: message: "Failed to detect desktop picker" name: "gum.electron_desktop_picker_not_found"

bekriebel commented 3 years ago

Is this using the electron app version of Foundry? That will almost certainly not work. I’ve only tested it from Chrome and Edge.

mentalic-mutant commented 3 years ago

Ya, works fine in the browser but it does not work in the app.

bekriebel commented 3 years ago

That makes sense. It seems electron doesn’t have the ability to handle a screen share request.