diff --git a/examples/objc/AppRTCMobile/ios/ARDVideoCallView.m b/examples/objc/AppRTCMobile/ios/ARDVideoCallView.m index 2241930d47..a29f2cf6af 100644 --- a/examples/objc/AppRTCMobile/ios/ARDVideoCallView.m +++ b/examples/objc/AppRTCMobile/ios/ARDVideoCallView.m @@ -23,7 +23,7 @@ static CGFloat const kLocalVideoViewSize = 120; static CGFloat const kLocalVideoViewPadding = 8; static CGFloat const kStatusBarHeight = 20; -@interface ARDVideoCallView () +@interface ARDVideoCallView () @end @implementation ARDVideoCallView { @@ -173,10 +173,10 @@ static CGFloat const kStatusBarHeight = 20; CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds)); } -#pragma mark - RTCEAGLVideoViewDelegate +#pragma mark - RTCVideoViewDelegate -- (void)videoView:(RTCEAGLVideoView*)videoView didChangeVideoSize:(CGSize)size { - if (videoView == _remoteVideoView) { +- (void)videoView:(id)videoView didChangeVideoSize:(CGSize)size { + if (videoView == _remoteVideoView) { _remoteVideoSize = size; } [self setNeedsLayout]; diff --git a/sdk/objc/components/renderer/opengl/RTCEAGLVideoView.h b/sdk/objc/components/renderer/opengl/RTCEAGLVideoView.h index c35fc2dfda..30764b54cd 100644 --- a/sdk/objc/components/renderer/opengl/RTCEAGLVideoView.h +++ b/sdk/objc/components/renderer/opengl/RTCEAGLVideoView.h @@ -19,10 +19,6 @@ NS_ASSUME_NONNULL_BEGIN @class RTCEAGLVideoView; -RTC_OBJC_EXPORT -@protocol RTCEAGLVideoViewDelegate -@end - /** * RTCEAGLVideoView is an RTCVideoRenderer which renders video frames in its * bounds using OpenGLES 2.0 or OpenGLES 3.0.