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