mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Fix mirror sender and use getDisplayMedia
This commit is contained in:
@@ -119,8 +119,9 @@ async function onRequestSessionSuccess (
|
||||
|
||||
case ReceiverSelectorMediaType.Screen: {
|
||||
|
||||
const stream = await navigator.mediaDevices.getUserMedia({
|
||||
video: { mediaSource: "screen" }
|
||||
const stream = await navigator.mediaDevices.getDisplayMedia({
|
||||
video: { cursor: "motion" }
|
||||
, audio: false
|
||||
});
|
||||
|
||||
peerConnection.addStream(stream);
|
||||
|
||||
Reference in New Issue
Block a user