-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use the shared sfu call object in react native (#60)
* feat: make sfu call object to accept rn webrtc * patch rtcrtpsender and rtcrtpreceiver and add polyfill for uuid * chore: fix issues after merge with main * fix: remove numeric symbols as its not compatible with metro for react-native ref: facebook/metro#645 * feat: add healper to get username fragment in rn webrtc * feat: add callID randomiser to RN * feat: add callID randomiser to RN * fix: typing issues with stream video client * chore(react-native): remove unused modules * fix: remove numeric symbols as its not compatible with metro for react-native ref: facebook/metro#645 * chore(react-native): remove unused modules * fix: remove numeric symbols as its not compatible with metro for react-native ref: facebook/metro#645 * chore: remove usage of webrtc/types * chore: remove the previously made generics for connection config and use global polyfilling * feat: add polyfill of rn-webrtc * feat: wip use participant videos from the shared state store * feat: add timeout in measureResourceLoadLatencyTo * chore: remove the temporary method that was used by react native * chore: remove unnecessary console log * fix: floating point numbers are not allowed in update subscriptions * chore: remove unnecessary console log * feat: filter out current user participant * fix: remove linking event listener * chore: remove unused imports * fix: patch crash in rn webrtc for undefined method on track * chore: revert to using the staging urls by default * chore: update yarn lock for webrtc patch * chore: update the rn webrtc patch * chore: remove the generics implementation in react-sdk * chore: remove the generics implementation in react dogfood * fix: latency call must get the blob of response * chore: revert the changes done to sfu call object * feat: patch ice candidate getter for react-native * fix: if only local participant is present then show it as full view * chore: align coordinator ws url * chore: use same length to get random call id as react dogfood app * fix: adding angular-sdk dir to metro.config blockList Co-authored-by: vanGalilea <galiliziv@gmail.com>
- Loading branch information
1 parent
7d6c4a8
commit 1693d63
Showing
33 changed files
with
271 additions
and
1,197 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
.yarn/patches/react-native-webrtc-npm-106.0.0-beta.6-795b82ce91.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/RTCPeerConnection.ts b/src/RTCPeerConnection.ts | ||
index 20de0069ce6137c1a10f65c2164084cf124c7ffe..46d89f399f65af135789b23ecd51258ce9df94f7 100644 | ||
--- a/src/RTCPeerConnection.ts | ||
+++ b/src/RTCPeerConnection.ts | ||
@@ -497,6 +497,7 @@ export default class RTCPeerConnection extends defineCustomEventTarget(...PEER_C | ||
|
||
if (oldTransceiver) { | ||
transceiver = oldTransceiver; | ||
+ transceiver._receiver._track = new MediaStreamTrack(transceiver._receiver._track); | ||
track = transceiver._receiver._track; | ||
transceiver._mid = ev.transceiver.mid; | ||
transceiver._currentDirection = ev.transceiver.currentDirection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ICETrickle } from '../../gen/video/sfu/models/models'; | ||
|
||
export function getIceCandidate( | ||
candidate: RTCIceCandidate, | ||
): ICETrickle['iceCandidate'] { | ||
if (!candidate.usernameFragment) { | ||
// react-native-webrtc doesn't include usernameFragment in the candidate | ||
const splittedCandidate = candidate.candidate.split(' '); | ||
const ufragIndex = | ||
splittedCandidate.findIndex((s: string) => s === 'ufrag') + 1; | ||
const usernameFragment = splittedCandidate[ufragIndex]; | ||
return JSON.stringify({ ...candidate, usernameFragment }); | ||
} else { | ||
return JSON.stringify(candidate.toJSON()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.