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; } } 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"