Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 14:04:28 +01:00
parent 81b91f4139
commit f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions

View file

@ -0,0 +1,36 @@
#ifndef TGCALLS_VIDEO_SAMPLE_BUFFER_VIEW_H
#define TGCALLS_VIDEO_SAMPLE_BUFFER_VIEW_H
#ifdef WEBRTC_MAC
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import "api/media_stream_interface.h"
#include <memory>
@interface VideoSampleBufferView : NSView
@property(nonatomic) CALayerContentsGravity _Nullable videoContentMode;
@property(nonatomic, getter=isEnabled) BOOL enabled;
@property(nonatomic, nullable) NSValue* rotationOverride;
@property (nonatomic, readwrite) int internalOrientation;
@property (nonatomic, readwrite) CGFloat internalAspect;
- (void)setSize:(CGSize)size;
- (std::shared_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>>)getSink;
- (void)setOnFirstFrameReceived:(void (^ _Nullable)())onFirstFrameReceived;
- (void)internalSetOnOrientationUpdated:(void (^ _Nullable)(int, CGFloat))onOrientationUpdated;
- (void)internalSetOnIsMirroredUpdated:(void (^ _Nullable)(bool))onIsMirroredUpdated;
+(BOOL)isAvailable;
@end
#endif //WEBRTC_MAC
#endif