From 08a71bab5eff6e6db58043ac92f5a722c3f2ca67 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Wed, 27 Mar 2024 10:29:07 -0300 Subject: [PATCH 1/2] Fixing stats for Android --- .../com/oney/WebRTCModule/PeerConnectionObserver.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/oney/WebRTCModule/PeerConnectionObserver.java b/android/src/main/java/com/oney/WebRTCModule/PeerConnectionObserver.java index 196e32a66..ad918334e 100644 --- a/android/src/main/java/com/oney/WebRTCModule/PeerConnectionObserver.java +++ b/android/src/main/java/com/oney/WebRTCModule/PeerConnectionObserver.java @@ -254,10 +254,10 @@ public void receiverGetStats(String receiverId, Promise promise) { } public void senderGetStats(String senderId, Promise promise) { - RtpReceiver targetSender = null; - for (RtpReceiver r : peerConnection.getReceivers()) { - if (r.id().equals(senderId)) { - targetSender = r; + RtpSender targetSender = null; + for (RtpSender s : this.peerConnection.getSenders()) { + if (s.id().equals(senderId)) { + targetSender = s; break; } } From 3d6486e2317919d4a1189a34c3ec1199a5891564 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Wed, 27 Mar 2024 11:39:26 -0300 Subject: [PATCH 2/2] Bumping version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 83b76aad7..61c0139c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@daily-co/react-native-webrtc", - "version": "118.0.3-daily.1", + "version": "118.0.3-daily.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@daily-co/react-native-webrtc", - "version": "118.0.3-daily.1", + "version": "118.0.3-daily.2", "license": "MIT", "dependencies": { "@types/react": "17.0.40", diff --git a/package.json b/package.json index 3ea204d83..84dd09de5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@daily-co/react-native-webrtc", - "version": "118.0.3-daily.1", + "version": "118.0.3-daily.2", "repository": { "type": "git", "url": "git+https://github.com/daily-co/react-native-webrtc.git"