| #import <Foundation/Foundation.h> |
| 6 | #import <UIKit/UIKit.h> |
| 7 |
| 8 | #import "api/media_stream_interface.h" |
| 9 |
| 10 | #include <memory> |
| 11 |
| 12 | @interface VideoSampleBufferView : UIView |
| 13 |
| 14 | @property(nonatomic) UIViewContentMode videoContentMode; |
| 15 | @property(nonatomic, getter=isEnabled) BOOL enabled; |
| 16 | @property(nonatomic, nullable) NSValue* rotationOverride; |
| 17 |
| 18 | @property (nonatomic, readwrite) int internalOrientation; |
| 19 | @property (nonatomic, readwrite) CGFloat internalAspect; |
| 20 |
| 21 | - (void)setSize:(CGSize)size; |
| 22 |
| 23 | - (std::shared_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>>)getSink; |
| 24 | - (void)setOnFirstFrameReceived:(void (^ _Nullable)())onFirstFrameReceived; |
| 25 | - (void)internalSetOnOrientationUpdated:(void (^ _Nullable)(int, CGFloat))onOrientationUpdated; |
| 26 | - (void)internalSetOnIsMirroredUpdated:(void (^ _Nullable)(bool))onIsMirroredUpdated; |
| 27 | - (void)addFrame:(const webrtc::VideoFrame&)frame; |
| 28 |
| 29 | - (void)setCloneTarget:(VideoSampleBufferView * _Nullable)cloneTarget; |
| 30 |
| 31 | @end |
| 32 |
| 33 | #endif //WEBRTC_IOS |
| 34 |
| 35 | #endif |
| 36 |