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