| 6 |
| 7 | #import <CoreMedia/CoreMedia.h> |
| 8 | #import <Foundation/Foundation.h> |
| 9 |
| 10 | namespace tgvoip |
| 11 | { |
| 12 | namespace video |
| 13 | { |
| 14 | class VideoSource; |
| 15 | } |
| 16 | } |
| 17 |
| 18 | typedef NS_ENUM(int, TGVVideoResolution) { |
| 19 | TGVVideoResolution1080, |
| 20 | TGVVideoResolution720, |
| 21 | TGVVideoResolution480, |
| 22 | TGVVideoResolution360 |
| 23 | }; |
| 24 |
| 25 | @protocol TGVVideoSourceDelegate <NSObject> |
| 26 |
| 27 | - (void)setFrameRate:(unsigned int)frameRate; |
| 28 |
| 29 | @end |
| 30 |
| 31 | @interface TGVVideoSource : NSObject |
| 32 |
| 33 | - (instancetype)initWithDelegate:(id<TGVVideoSourceDelegate>)delegate; |
| 34 | - (void)sendVideoFrame:(CMSampleBufferRef)buffer; |
| 35 | - (TGVVideoResolution)maximumSupportedVideoResolution; |
| 36 | - (void)setVideoRotation:(unsigned int)rotation; |
| 37 | - (void)pauseStream; |
| 38 | - (void)resumeStream; |
| 39 | - (tgvoip::video::VideoSource*)nativeVideoSource; |
| 40 |
| 41 | - (void)_requestFrameRate:(unsigned int)frameRate; |
| 42 |
| 43 | @end |
| 44 |