Skip to content

Commit 0eb8b4b

Browse files
authored
fix: add H264 simulcast for ios (#17)
1 parent 63392f9 commit 0eb8b4b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ios/RCTWebRTC/WebRTCModule.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ - (instancetype)init {
5959
RTCSetMinDebugLogLevel(loggingSeverity);
6060

6161
if (encoderFactory == nil) {
62-
encoderFactory = [[RTCDefaultVideoEncoderFactory alloc] init];
62+
RTCDefaultVideoEncoderFactory *videoEncoderFactory = [[RTCDefaultVideoEncoderFactory alloc] init];
63+
RTCVideoEncoderFactorySimulcast *simulcastVideoEncoderFactory = [[RTCVideoEncoderFactorySimulcast alloc] initWithPrimary:videoEncoderFactory fallback:videoEncoderFactory];
64+
encoderFactory = simulcastVideoEncoderFactory;
6365
}
6466
if (decoderFactory == nil) {
6567
decoderFactory = [[RTCDefaultVideoDecoderFactory alloc] init];

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stream-io/react-native-webrtc",
3-
"version": "125.4.1",
3+
"version": "125.4.2-rc.1",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/GetStream/react-native-webrtc.git"

0 commit comments

Comments
 (0)