Skip to content

Commit 992c024

Browse files
committed
Merge branch 'PBE-5855-feat/react-native-video-design-v2' into color-consolidation-and-other-fixes
2 parents 546534e + 9ae9718 commit 992c024

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

packages/client/docusaurus/docs/javascript/02-guides/03-call-and-participant-state.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ const subscription = call.state.participants$.subscribe((participants) => {
151151
subscription.unsubscribe();
152152
```
153153

154+
In a call with many participants, the value of the `participants$` call state observable is truncated to 250 participants. The participants who are publishing video, audio, or screen sharing have priority over the other participants in the list. This means, for example, that in a livestream with one host and many viewers, the host is guaranteed to be in the list.
155+
154156
## Client state
155157

156158
The client state can be accessed by `client.state`.

packages/react-native-sdk/docusaurus/docs/reactnative/03-core/03-call-and-participant-state.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ const hosts = participants.filter((p) => p.roles.includes('host'));
205205

206206
// participants that publish video and audio
207207
const videoParticipants = participants.filter(
208-
(p) => hasVideo(p) && hasAudio(p),
208+
(p) => hasVideo(p) && hasAudio(p)
209209
);
210210
```
211211

212+
In a call with many participants, the list returned by the `useParticipants` call state hook is truncated to 250 participants. The participants who are publishing video, audio, or screen sharing have priority over the other participants in the list. This means, for example, that in a livestream with one host and many viewers, the host is guaranteed to be in the list.
213+
212214
## Client state
213215

214216
To observe client state you need to provide a `StreamVideoClient` instance to the `StreamVideo` context provider.

packages/react-sdk/docusaurus/docs/React/02-guides/03-call-and-participant-state.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ const videoParticipants = participants.filter(
207207
);
208208
```
209209

210+
In a call with many participants, the list returned by the `useParticipants` call state hook is truncated to 250 participants. The participants who are publishing video, audio, or screen sharing have priority over the other participants in the list. This means, for example, that in a livestream with one host and many viewers, the host is guaranteed to be in the list.
211+
210212
## Client state
211213

212214
To observe client state you need to provide a `StreamVideoClient` instance to the `StreamVideo` context provider.

sample-apps/react-native/dogfood/ios/StreamReactNativeVideoSDKSample/AppDelegate.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// @react-native-community/push-notification-ios
1414
#import <UserNotifications/UserNotifications.h>
1515
#import <RNCPushNotificationIOS.h>
16+
#import <WebRTCModuleOptions.h>
1617

1718
#import "StreamVideoReactNative.h"
1819

@@ -123,6 +124,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
123124
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
124125
center.delegate = self;
125126

127+
WebRTCModuleOptions *options = [WebRTCModuleOptions sharedInstance];
128+
// uncomment below to see native webrtc logs
129+
// options.loggingSeverity = RTCLoggingSeverityInfo;
130+
126131
return [super application:application didFinishLaunchingWithOptions:launchOptions];
127132
}
128133

sample-apps/react-native/dogfood/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
"installConfig": {
8686
"hoistingLimits": "workspaces"
8787
}
88-
}
88+
}

0 commit comments

Comments
 (0)