File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88#if TARGET_OS_OSX
99#import < WebRTC/RTCMTLNSVideoView.h>
1010#else
11- #import < WebRTC/RTCMTLVideoView .h>
11+ #import < WebRTC/RTCVideoRenderingView .h>
1212#endif
1313#import < WebRTC/RTCCVPixelBuffer.h>
1414#import < WebRTC/RTCVideoFrame.h>
@@ -67,7 +67,7 @@ @interface RTCVideoView : RCTView
6767#if TARGET_OS_OSX
6868@property (nonatomic , readonly ) RTCMTLNSVideoView *videoView;
6969#else
70- @property (nonatomic , readonly ) RTCMTLVideoView *videoView;
70+ @property (nonatomic , readonly ) RTCVideoRenderingView *videoView;
7171#endif
7272
7373/* *
@@ -124,7 +124,8 @@ - (instancetype)initWithFrame:(CGRect)frame {
124124 subview.wantsLayer = true ;
125125 _videoView = subview;
126126#else
127- RTCMTLVideoView *subview = [[RTCMTLVideoView alloc ] initWithFrame: CGRectZero];
127+ RTCVideoRenderingView *subview = [[RTCVideoRenderingView alloc ] initWithFrame: CGRectZero];
128+ subview.renderingBackend = RTCVideoRenderingBackendSharedMetal;
128129 _videoView = subview;
129130#endif
130131 [self addSubview: self .videoView];
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ - (instancetype)init {
111111 audioProcessingModule: nil ];
112112 }
113113
114+ _peerConnectionFactory.frameBufferPolicy = RTCFrameBufferPolicyConvertWithPoolToNV12;
115+
114116 _rtcAudioDeviceModuleObserver = [[AudioDeviceModuleObserver alloc ] initWithWebRTCModule: self ];
115117 _audioDeviceModule = [[AudioDeviceModule alloc ] initWithSource: _peerConnectionFactory.audioDeviceModule
116118 delegateObserver: _rtcAudioDeviceModuleObserver];
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Pod::Spec.new do |s|
2121 s . swift_version = '5.0'
2222 s . dependency 'React-Core'
2323 # WebRTC version from https://github.com/GetStream/stream-video-swift-webrtc releases
24- s . dependency 'StreamWebRTC' , '~>137.0.54 '
24+ s . dependency 'StreamWebRTC' , '~>137.0.62 '
2525 # Swift/Objective-C compatibility #https://blog.cocoapods.org/CocoaPods-1.5.0/
2626 s . pod_target_xcconfig = {
2727 'DEFINES_MODULE' => 'YES'
You can’t perform that action at this time.
0 commit comments