-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use the shared sfu call object in react native #60
Merged
Merged
Changes from 31 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
160e210
feat: make sfu call object to accept rn webrtc
santhoshvai 3b85d50
Merge branch 'main' into feat/rn-use-shared-sfu-client
santhoshvai 2561e76
patch rtcrtpsender and rtcrtpreceiver and add polyfill for uuid
santhoshvai 79317be
chore: fix issues after merge with main
santhoshvai efcaa45
fix: remove numeric symbols as its not compatible with metro for reac…
santhoshvai ee051b9
feat: add healper to get username fragment in rn webrtc
santhoshvai d9c2ad1
feat: add callID randomiser to RN
santhoshvai 9244b18
feat: add callID randomiser to RN
santhoshvai 5a82877
fix: typing issues with stream video client
santhoshvai c3b5621
chore(react-native): remove unused modules
santhoshvai 3256af3
fix: remove numeric symbols as its not compatible with metro for reac…
santhoshvai 981e5d7
chore(react-native): remove unused modules
santhoshvai a21ae16
fix: remove numeric symbols as its not compatible with metro for reac…
santhoshvai 6b8315c
chore: remove usage of webrtc/types
santhoshvai 41fb68b
chore: remove the previously made generics for connection config and …
santhoshvai ece9508
feat: add polyfill of rn-webrtc
santhoshvai 2312446
feat: wip use participant videos from the shared state store
santhoshvai 220083b
feat: add timeout in measureResourceLoadLatencyTo
santhoshvai 5cd8b0e
chore: remove the temporary method that was used by react native
santhoshvai 43b3e72
chore: remove unnecessary console log
santhoshvai b08b60b
fix: floating point numbers are not allowed in update subscriptions
santhoshvai ebbe9cf
chore: remove unnecessary console log
santhoshvai 0134532
feat: filter out current user participant
santhoshvai 2b6bb09
fix: remove linking event listener
santhoshvai 20ce55a
chore: remove unused imports
santhoshvai 8b029f8
fix: patch crash in rn webrtc for undefined method on track
santhoshvai 787bfa6
chore: revert to using the staging urls by default
santhoshvai 572d81f
chore: update yarn lock for webrtc patch
santhoshvai 4f8d08a
chore: update the rn webrtc patch
santhoshvai 6f9088e
Merge branch 'main' into feat/rn-use-shared-sfu-client
santhoshvai 2efa258
chore: remove the generics implementation in react-sdk
santhoshvai a5716eb
chore: remove the generics implementation in react dogfood
santhoshvai 3af2dd9
fix: latency call must get the blob of response
santhoshvai c526032
chore: revert the changes done to sfu call object
santhoshvai eaf4fef
Merge branch 'main' into feat/rn-use-shared-sfu-client
santhoshvai c70df17
feat: patch ice candidate getter for react-native
santhoshvai 4ebc5ce
fix: if only local participant is present then show it as full view
santhoshvai c7dfab6
chore: align coordinator ws url
santhoshvai 7214b49
chore: use same length to get random call id as react dogfood app
santhoshvai ed43ef7
fix: adding angular-sdk dir to metro.config blockList
vanGalilea bef7351
Merge branch 'main' into feat/rn-use-shared-sfu-client
santhoshvai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's create a PR in the RN webrtc lib.