Replies: 3 comments 5 replies
-
Hey @Robloche, |
Beta Was this translation helpful? Give feedback.
4 replies
-
Also, I see the following function in the generated function $5151b78094cea2ba$export$a57d114344295149(window, browserDetails) {
/* remove a=extmap-allow-mixed for webrtc.org < M71 */ if (!window.RTCPeerConnection) return;
if (browserDetails.browser === "chrome" && browserDetails.version >= 71) return;
if (browserDetails.browser === "safari" && browserDetails.version >= 605) return;
const nativeSRD = window.RTCPeerConnection.prototype.setRemoteDescription;
window.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription(desc) {
if (desc && desc.sdp && desc.sdp.indexOf("\na=extmap-allow-mixed") !== -1) {
const sdp = desc.sdp.split("\n").filter((line)=>{
return line.trim() !== "a=extmap-allow-mixed";
}).join("\n");
// Safari enforces read-only-ness of RTCSessionDescription fields.
if (window.RTCSessionDescription && desc instanceof window.RTCSessionDescription) arguments[0] = new window.RTCSessionDescription({
type: desc.type,
sdp: sdp
});
else desc.sdp = sdp;
}
return nativeSRD.apply(this, arguments);
};
} Isn't it supposed to act as a workaround for a bug existing in Chrome versions < 71? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Has anyone tried to use peerjs in a web app running on a Samsung TV?
I wrote a short code that can act as receiver or sender (you can check it here: https://ntgrdb2.azureedge.net/index.html).
When I run it on 2 different browsers, I can indeed send data from the sender to the receiver.
But when the receiver runs on the TV, I get errors.
The connection to the signaling server is OK and the receiver seems to connect to the sender (see message
Connected to: xxx
), but then it fails shortly afterward:Any help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions