Is it possible broadcast audio with screensharing with WebRTC

后端 未结 4 2022
面向向阳花
面向向阳花 2021-02-04 11:56

is it possible broadcast audio with screensharing with WebRTC? Simple calling getUserMedia with audio: true fails by permission denied error. Is there

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 12:55

    In Firefox, you can use getUserMedia to grab a screenshare/etc and mic audio in the same request, and can attach it to a PeerConnection. You can combine it with other streams -- multiple audio or video tracks in a single PeerConnection in Firefox requires Firefox 38 or later. Currently 38 is Developer Edition (formerly termed Aurora). 38 should go to release in around 9 weeks or so.

提交回复
热议问题