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

[WIP] Add WebRTC features to Linux #277

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shotman
Copy link

@Shotman Shotman commented Dec 9, 2024

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.

@SpikeHD
Copy link
Owner

SpikeHD commented Dec 11, 2024

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.

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

Successfully merging this pull request may close these issues.

2 participants