mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 18:40:32 +00:00
436b6d8efb
There's currently a Safari-side bug causing webrtc-adapter to be unable to correctly shim the empty-candidate scenario which we're using. This patch is very much a workaround and should be removed as soon as Safari and/or webrtc-adapter fixes this on their side. https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/439 https://github.com/webrtcHacks/adapter/issues/1140 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1377>
13 lines
625 B
Diff
13 lines
625 B
Diff
diff --git a/node_modules/webrtc-adapter/src/js/common_shim.js b/node_modules/webrtc-adapter/src/js/common_shim.js
|
|
index 96d7c8e..063ea64 100644
|
|
--- a/node_modules/webrtc-adapter/src/js/common_shim.js
|
|
+++ b/node_modules/webrtc-adapter/src/js/common_shim.js
|
|
@@ -388,7 +388,7 @@ export function shimAddIceCandidateNullOrEmpty(window, browserDetails) {
|
|
}
|
|
const nativeAddIceCandidate =
|
|
window.RTCPeerConnection.prototype.addIceCandidate;
|
|
- if (!nativeAddIceCandidate || nativeAddIceCandidate.length === 0) {
|
|
+ if (!nativeAddIceCandidate) {
|
|
return;
|
|
}
|
|
window.RTCPeerConnection.prototype.addIceCandidate =
|