Dorion icon indicating copy to clipboard operation
Dorion copied to clipboard

[WIP] Add WebRTC features to Linux

Open Shotman opened this issue 1 year ago • 1 comments

This PR is a starting point to enable media/WebRTC features to Linux currently it allows to get to this point : image

But the issue lies with the navigator.getUserMedia() this API is deprecated and not available in webkitGTK and now navigator.mediaDevices.getUserMedia() must be used, and using some polyfill or dirty JS injection doesn't solve the problem. I'm putting this as a draft PR if one day either Discord or webkit changes something so it can be merged. In the mean time if someone has an idea you are welcome to modify the code.

Shotman avatar Dec 09 '24 20:12 Shotman

FYI for anyone coming across this, if I remember correctly from testing, the core problem lies in the fact that RTCPeerConnection is undefined on instances of webkitgtk without the WebRTC flag.

SpikeHD avatar Dec 11 '24 05:12 SpikeHD