Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ios/RCTWebRTC/RTCVideoViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#if TARGET_OS_OSX
#import <WebRTC/RTCMTLNSVideoView.h>
#else
#import <WebRTC/RTCMTLVideoView.h>
#import <WebRTC/RTCVideoRenderingView.h>
#endif
#import <WebRTC/RTCCVPixelBuffer.h>
#import <WebRTC/RTCVideoFrame.h>
Expand Down Expand Up @@ -67,7 +67,7 @@ @interface RTCVideoView : RCTView
#if TARGET_OS_OSX
@property(nonatomic, readonly) RTCMTLNSVideoView *videoView;
#else
@property(nonatomic, readonly) RTCMTLVideoView *videoView;
@property(nonatomic, readonly) RTCVideoRenderingView *videoView;
#endif

/**
Expand Down Expand Up @@ -124,7 +124,8 @@ - (instancetype)initWithFrame:(CGRect)frame {
subview.wantsLayer = true;
_videoView = subview;
#else
RTCMTLVideoView *subview = [[RTCMTLVideoView alloc] initWithFrame:CGRectZero];
RTCVideoRenderingView *subview = [[RTCVideoRenderingView alloc] initWithFrame:CGRectZero];
subview.renderingBackend = RTCVideoRenderingBackendSharedMetal;
_videoView = subview;
#endif
[self addSubview:self.videoView];
Expand Down
2 changes: 2 additions & 0 deletions ios/RCTWebRTC/WebRTCModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ - (instancetype)init {
decoderFactory:decoderFactory
audioProcessingModule:nil];
}

_peerConnectionFactory.frameBufferPolicy = RTCFrameBufferPolicyCopyToNV12;

_rtcAudioDeviceModuleObserver = [[AudioDeviceModuleObserver alloc] initWithWebRTCModule:self];
_audioDeviceModule = [[AudioDeviceModule alloc] initWithSource:_peerConnectionFactory.audioDeviceModule
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stream-io/react-native-webrtc",
"version": "137.2.0",
"version": "137.2.1-rc.2",
"repository": {
"type": "git",
"url": "git+https://github.com/GetStream/react-native-webrtc.git"
Expand Down
2 changes: 1 addition & 1 deletion stream-react-native-webrtc.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
s.swift_version = '5.0'
s.dependency 'React-Core'
# WebRTC version from https://github.com/GetStream/stream-video-swift-webrtc releases
s.dependency 'StreamWebRTC', '~>137.0.54'
s.dependency 'StreamWebRTC', '~>137.0.75'
# Swift/Objective-C compatibility #https://blog.cocoapods.org/CocoaPods-1.5.0/
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES'
Expand Down
Loading