Skip to content

Commit

Permalink
Upgrade to 131.0.6778.69 version (#133)
Browse files Browse the repository at this point in the history
- update `enable_ios_scalability_mode.patch`
- add `linux_emplace.patch`
- add `windows_fix_optional.patch`

Co-authored-by: evdokimovs <[email protected]>
  • Loading branch information
instrumentisto-bot and evdokimovs authored Nov 21, 2024
1 parent a76a3cd commit a7bcbf0
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 27 deletions.
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ CCACHE_VERSION=4.8.3

# WebRTC doesn't have its own versioning, so we use Chromium versions:
# https://chromiumdash.appspot.com/releases
WEBRTC_VERSION=130.0.6723.116
WEBRTC_VERSION=131.0.6778.69
# Look for the concrete revision for WebRTC in:
# https://chromium.googlesource.com/chromium/src/+/refs/tags/<WEBRTC_VERSION>/DEPS
WEBRTC_COMMIT=28b793b4dd275bf2b901b87e01c0ee8d4f5732fc
WEBRTC_COMMIT=8445abdf8069cadcbd134369b70d0ebd436ef477

# Additional revision of the `WEBRTC_VERSION` added as `-rN` suffix to it, and
# tracking additional changes applied on top of it.
Expand Down
1 change: 1 addition & 0 deletions build.windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Exec { git apply --ignore-space-change -v $PATCH_DIR\fix_disable_proxy_trace_eve
Exec { git apply --ignore-space-change -v $PATCH_DIR\webrtc_voice_engine.patch }
Exec { git apply --ignore-space-change -v $PATCH_DIR\win_dynamic_crt.patch }
Exec { git apply --ignore-space-change -v $PATCH_DIR\windows_fix_abseil.patch }
Exec { git apply --ignore-space-change -v $PATCH_DIR\windows_fix_optional.patch }
Pop-Location

Get-PSDrive
Expand Down
3 changes: 2 additions & 1 deletion build/linux-arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ patch: common-patch
patch -p2 < $(PATCH_DIR)/4k_linux.patch && \
patch -p2 < $(PATCH_DIR)/disable_use_hermetic_xcode_on_linux.patch && \
patch -p2 < $(PATCH_DIR)/linux_clang_optional.patch && \
patch -p2 < $(PATCH_DIR)/linux_fix_enable_safe_libstdcxx.patch
patch -p2 < $(PATCH_DIR)/linux_fix_enable_safe_libstdcxx.patch && \
patch -p2 < $(PATCH_DIR)/linux_emplace.patch

.PHONY: build
build: download patch
Expand Down
3 changes: 2 additions & 1 deletion build/linux-x64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ patch: common-patch
patch -p2 < $(PATCH_DIR)/4k_linux.patch && \
patch -p2 < $(PATCH_DIR)/disable_use_hermetic_xcode_on_linux.patch && \
patch -p2 < $(PATCH_DIR)/linux_clang_optional.patch && \
patch -p2 < $(PATCH_DIR)/linux_fix_enable_safe_libstdcxx.patch
patch -p2 < $(PATCH_DIR)/linux_fix_enable_safe_libstdcxx.patch && \
patch -p2 < $(PATCH_DIR)/linux_emplace.patch

.PHONY: build
build: download patch
Expand Down
4 changes: 2 additions & 2 deletions instrumentisto-libwebrtc-bin.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |spec|
spec.name = "instrumentisto-libwebrtc-bin"
spec.version = "130.0.6723.116"
spec.version = "131.0.6778.69"
spec.summary = "Pre-compiled `libwebrtc` library for Darwin used by Medea Flutter-WebRTC."

spec.homepage = "https://github.com/instrumentisto/libwebrtc-bin"
spec.license = { :type => 'BSD', :file => 'WebRTC.xcframework/LICENSE.md' }
spec.author = { 'Instrumentisto Team' => '[email protected]' }
spec.ios.deployment_target = '10.0'

spec.source = { :http => "https://github.com/instrumentisto/libwebrtc-bin/releases/download/130.0.6723.116/libwebrtc-ios.zip" }
spec.source = { :http => "https://github.com/instrumentisto/libwebrtc-bin/releases/download/131.0.6778.69/libwebrtc-ios.zip" }
spec.vendored_frameworks = "WebRTC.xcframework"

spec.pod_target_xcconfig = {
Expand Down
42 changes: 21 additions & 21 deletions patch/enable_ios_scalability_mode.patch
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ index 27fb4adada..7306e3d2ab 100644
}

diff --git a/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.h b/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.h
index 07f6b7a39c..d055115ae2 100644
index 467b51de98..8795d5af71 100644
--- a/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.h
+++ b/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.h
@@ -51,6 +51,10 @@ RTC_OBJC_EXPORT
Expand All @@ -126,15 +126,15 @@ diff --git a/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.mm b/src/s
index 69f8885f4c..2a79c30edb 100644
--- a/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.mm
+++ b/src/sdk/objc/api/peerconnection/RTCRtpEncodingParameters.mm
@@ -20,6 +20,7 @@ @implementation RTC_OBJC_TYPE (RTCRtpEncodingParameters)
@@ -20,6 +20,7 @@
@synthesize minBitrateBps = _minBitrateBps;
@synthesize maxFramerate = _maxFramerate;
@synthesize numTemporalLayers = _numTemporalLayers;
+@synthesize scalabilityMode = _scalabilityMode;
@synthesize scaleResolutionDownBy = _scaleResolutionDownBy;
@synthesize ssrc = _ssrc;
@synthesize bitratePriority = _bitratePriority;
@@ -53,6 +54,10 @@ - (instancetype)initWithNativeParameters:
@@ -53,6 +54,10 @@
if (nativeParameters.num_temporal_layers) {
_numTemporalLayers = [NSNumber numberWithInt:*nativeParameters.num_temporal_layers];
}
Expand All @@ -145,7 +145,7 @@ index 69f8885f4c..2a79c30edb 100644
if (nativeParameters.scale_resolution_down_by) {
_scaleResolutionDownBy =
[NSNumber numberWithDouble:*nativeParameters.scale_resolution_down_by];
@@ -86,6 +91,10 @@ - (instancetype)initWithNativeParameters:
@@ -86,6 +91,10 @@
if (_numTemporalLayers != nil) {
parameters.num_temporal_layers = std::optional<int>(_numTemporalLayers.intValue);
}
Expand Down Expand Up @@ -506,7 +506,7 @@ diff --git a/src/sdk/objc/base/RTCVideoCodecInfo.m b/src/sdk/objc/base/RTCVideoC
index a45c2d33fb..4228942e48 100644
--- a/src/sdk/objc/base/RTCVideoCodecInfo.m
+++ b/src/sdk/objc/base/RTCVideoCodecInfo.m
@@ -64,12 +64,14 @@ - (NSUInteger)hash {
@@ -64,12 +64,14 @@

- (instancetype)initWithCoder:(NSCoder *)decoder {
return [self initWithName:[decoder decodeObjectForKey:@"name"]
Expand All @@ -523,17 +523,17 @@ index a45c2d33fb..4228942e48 100644

@end
diff --git a/src/sdk/objc/base/RTCVideoEncoderFactory.h b/src/sdk/objc/base/RTCVideoEncoderFactory.h
index 31e469d4ba..668249da81 100644
index 3a102c87b5..df2ed4ad92 100644
--- a/src/sdk/objc/base/RTCVideoEncoderFactory.h
+++ b/src/sdk/objc/base/RTCVideoEncoderFactory.h
@@ -13,6 +13,7 @@
#import "RTCMacros.h"
@@ -12,6 +12,7 @@

#import "RTCVideoCodecInfo.h"
#import "RTCVideoEncoder.h"
+#import "RTCCodecSupport.h"
#import "sdk/objc/base/RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

@@ -59,6 +60,10 @@ RTC_OBJC_EXPORT
- (NSArray<RTC_OBJC_TYPE(RTCVideoCodecInfo) *> *)
supportedCodecs; // TODO(andersc): "supportedFormats" instead?
Expand Down Expand Up @@ -622,7 +622,7 @@ index 6e3baa8750..8c2a8b1f39 100644

#if defined(RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY)
#import "api/video_codec/RTCVideoDecoderAV1.h" // nogncheck
@@ -31,7 +32,8 @@ @implementation RTC_OBJC_TYPE (RTCDefaultVideoDecoderFactory)
@@ -31,7 +32,8 @@
};
RTC_OBJC_TYPE(RTCVideoCodecInfo) *constrainedHighInfo =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:kRTCVideoCodecH264Name
Expand All @@ -632,7 +632,7 @@ index 6e3baa8750..8c2a8b1f39 100644

NSDictionary<NSString *, NSString *> *constrainedBaselineParams = @{
@"profile-level-id" : kRTCMaxSupportedH264ProfileLevelConstrainedBaseline,
@@ -40,7 +42,8 @@ @implementation RTC_OBJC_TYPE (RTCDefaultVideoDecoderFactory)
@@ -40,7 +42,8 @@
};
RTC_OBJC_TYPE(RTCVideoCodecInfo) *constrainedBaselineInfo =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:kRTCVideoCodecH264Name
Expand All @@ -643,17 +643,17 @@ index 6e3baa8750..8c2a8b1f39 100644
RTC_OBJC_TYPE(RTCVideoCodecInfo) *vp8Info =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:kRTCVideoCodecVp8Name];
diff --git a/src/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h b/src/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h
index 92ab40c95b..e0344d0f97 100644
index 4dc2d6c8a8..bd82652321 100644
--- a/src/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h
+++ b/src/sdk/objc/components/video_codec/RTCDefaultVideoEncoderFactory.h
@@ -12,6 +12,7 @@
@@ -11,6 +11,7 @@
#import <Foundation/Foundation.h>

#import "RTCMacros.h"
#import "RTCVideoEncoderFactory.h"
+#import "api/video_codec/RTCWrappedNativeVideoEncoderFactory.h"
#import "sdk/objc/base/RTCMacros.h"

NS_ASSUME_NONNULL_BEGIN

@@ -23,8 +24,9 @@ RTC_OBJC_EXPORT
@interface RTC_OBJC_TYPE (RTCDefaultVideoEncoderFactory) : NSObject <RTC_OBJC_TYPE(RTCVideoEncoderFactory)>

Expand Down Expand Up @@ -789,7 +789,7 @@ index bdae19d687..1cdbd0887d 100644

@implementation RTC_OBJC_TYPE (RTCVideoDecoderFactoryH264)

@@ -26,7 +27,8 @@ @implementation RTC_OBJC_TYPE (RTCVideoDecoderFactoryH264)
@@ -26,7 +27,8 @@
};
RTC_OBJC_TYPE(RTCVideoCodecInfo) *constrainedHighInfo =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:codecName
Expand All @@ -799,7 +799,7 @@ index bdae19d687..1cdbd0887d 100644
[codecs addObject:constrainedHighInfo];

NSDictionary<NSString *, NSString *> *constrainedBaselineParams = @{
@@ -36,7 +38,8 @@ @implementation RTC_OBJC_TYPE (RTCVideoDecoderFactoryH264)
@@ -36,7 +38,8 @@
};
RTC_OBJC_TYPE(RTCVideoCodecInfo) *constrainedBaselineInfo =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:codecName
Expand All @@ -821,7 +821,7 @@ index 9843849307..1c897b4e7b 100644

@implementation RTC_OBJC_TYPE (RTCVideoEncoderFactoryH264)

@@ -26,7 +27,8 @@ @implementation RTC_OBJC_TYPE (RTCVideoEncoderFactoryH264)
@@ -26,7 +27,8 @@
};
RTC_OBJC_TYPE(RTCVideoCodecInfo) *constrainedHighInfo =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:codecName
Expand All @@ -831,7 +831,7 @@ index 9843849307..1c897b4e7b 100644
[codecs addObject:constrainedHighInfo];

NSDictionary<NSString *, NSString *> *constrainedBaselineParams = @{
@@ -36,7 +38,8 @@ @implementation RTC_OBJC_TYPE (RTCVideoEncoderFactoryH264)
@@ -36,7 +38,8 @@
};
RTC_OBJC_TYPE(RTCVideoCodecInfo) *constrainedBaselineInfo =
[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:codecName
Expand All @@ -841,7 +841,7 @@ index 9843849307..1c897b4e7b 100644
[codecs addObject:constrainedBaselineInfo];

return [codecs copy];
@@ -46,4 +49,15 @@ @implementation RTC_OBJC_TYPE (RTCVideoEncoderFactoryH264)
@@ -46,4 +49,15 @@
return [[RTC_OBJC_TYPE(RTCVideoEncoderH264) alloc] initWithCodecInfo:info];
}

Expand All @@ -861,7 +861,7 @@ diff --git a/src/sdk/objc/unittests/objc_video_encoder_factory_tests.mm b/src/sd
index 2f469bb4a6..8da6f1f9ca 100644
--- a/src/sdk/objc/unittests/objc_video_encoder_factory_tests.mm
+++ b/src/sdk/objc/unittests/objc_video_encoder_factory_tests.mm
@@ -37,7 +37,9 @@
@@ -37,7 +37,9 @@ id<RTC_OBJC_TYPE(RTCVideoEncoderFactory)> CreateEncoderFactoryReturning(int retu

id encoderFactoryMock = OCMProtocolMock(@protocol(RTC_OBJC_TYPE(RTCVideoEncoderFactory)));
RTC_OBJC_TYPE(RTCVideoCodecInfo)* supported =
Expand Down
14 changes: 14 additions & 0 deletions patch/linux_emplace.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/src/media/engine/webrtc_video_engine.cc b/src/media/engine/webrtc_video_engine.cc
index d6b53ffa6b..a57af55409 100644
--- a/src/media/engine/webrtc_video_engine.cc
+++ b/src/media/engine/webrtc_video_engine.cc
@@ -1995,7 +1995,8 @@ void WebRtcVideoSendChannel::WebRtcVideoSendStream::SetCodec(
stream_config.raw_payload =
cs.codec.packetization == kPacketizationParamRaw;
if (i < parameters_.config.rtp.rtx.ssrcs.size()) {
- auto& rtx = stream_config.rtx.emplace();
+ auto& rtx = stream_config.rtx.emplace(
+ decltype(stream_config.rtx)::value_type());
rtx.ssrc = parameters_.config.rtp.rtx.ssrcs[i];
rtx.payload_type = cs.rtx_payload_type;
}
12 changes: 12 additions & 0 deletions patch/windows_fix_optional.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/rtc_base/ssl_stream_adapter.h b/src/rtc_base/ssl_stream_adapter.h
index dcaaf3a0d1..3b06516011 100644
--- a/src/rtc_base/ssl_stream_adapter.h
+++ b/src/rtc_base/ssl_stream_adapter.h
@@ -14,6 +14,7 @@
#include <stddef.h>
#include <stdint.h>

+#include <optional>
#include <memory>
#include <string>
#include <vector>

0 comments on commit a7bcbf0

Please sign in to comment.