2016-01-21 11:42:05 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2018-08-30 09:30:29 +02:00
|
|
|
#if TARGET_OS_IPHONE
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-09-16 11:41:17 +03:00
|
|
|
#import "sdk/objc/base/RTCMacros.h"
|
2016-01-21 11:42:05 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
2020-05-04 16:14:32 +02:00
|
|
|
@class RTC_OBJC_TYPE(RTCVideoFrame);
|
2018-08-30 09:30:29 +02:00
|
|
|
|
2018-09-17 10:22:56 +02:00
|
|
|
RTC_OBJC_EXPORT
|
2020-05-04 16:14:32 +02:00
|
|
|
@protocol RTC_OBJC_TYPE
|
|
|
|
|
(RTCVideoRenderer)<NSObject>
|
2018-08-30 09:30:29 +02:00
|
|
|
|
2020-05-04 16:14:32 +02:00
|
|
|
/** The size of the frame. */
|
|
|
|
|
- (void)setSize : (CGSize)size;
|
2018-08-30 09:30:29 +02:00
|
|
|
|
|
|
|
|
/** The frame to be displayed. */
|
2020-05-04 16:14:32 +02:00
|
|
|
- (void)renderFrame:(nullable RTC_OBJC_TYPE(RTCVideoFrame) *)frame;
|
2018-08-30 09:30:29 +02:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
2018-09-17 10:22:56 +02:00
|
|
|
RTC_OBJC_EXPORT
|
2020-05-04 16:14:32 +02:00
|
|
|
@protocol RTC_OBJC_TYPE
|
|
|
|
|
(RTCVideoViewDelegate)
|
2016-01-21 11:42:05 -08:00
|
|
|
|
2025-01-08 05:55:05 -08:00
|
|
|
- (void)videoView
|
|
|
|
|
: (id<RTC_OBJC_TYPE(RTCVideoRenderer)>)videoView didChangeVideoSize
|
2020-05-04 16:14:32 +02:00
|
|
|
: (CGSize)size;
|
2016-01-21 11:42:05 -08:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|