grey-software / toonin

Technology that allows you to tune in to your friends and family in realtime using peer-to-peer sharing.
https://toonin.grey.software
MIT License
67 stars 6 forks source link

Give users the option to only share audio from a tab #177

Closed ArsalaBangash closed 4 years ago

ArsalaBangash commented 4 years ago

The current share screen option doesn't allow a user to only share audio from their tab.

alir128 commented 4 years ago

"Failed to execute 'getDisplayMedia' on 'MediaDevices': Audio only requests are not supported" not supported by the Api. With the chrome extension it was possible only because we used https://developer.chrome.com/extensions/tabCapture but this is only available from a chrome extension. An option could be to have a toggle that disables sending the video stream to peers after it has been captured. This can work because we can just stop sending the track over RTC.

ArsalaBangash commented 4 years ago

I think our best bet would be to create checkboxes for video and audio, and follow your suggestion where we only send selected tracks over WebRTC.