2019-02-24 13:15:14 +01:00
|
|
|
//
|
|
|
|
// libtgvoip is free and unencumbered public domain software.
|
|
|
|
// For more information, see http://unlicense.org or the UNLICENSE file
|
|
|
|
// you should have received with this source code distribution.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <CoreMedia/CoreMedia.h>
|
|
|
|
|
|
|
|
namespace tgvoip{
|
|
|
|
namespace video{
|
|
|
|
class VideoSource;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef NS_ENUM(int, TGVVideoResolution){
|
|
|
|
TGVVideoResolution1080,
|
|
|
|
TGVVideoResolution720,
|
|
|
|
TGVVideoResolution480,
|
|
|
|
TGVVideoResolution360
|
|
|
|
};
|
|
|
|
|
2019-03-10 23:12:09 +01:00
|
|
|
@protocol TGVVideoSourceDelegate <NSObject>
|
|
|
|
|
|
|
|
- (void)setFrameRate: (unsigned int)frameRate;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2019-02-24 13:15:14 +01:00
|
|
|
@interface TGVVideoSource : NSObject
|
|
|
|
|
2019-03-10 23:12:09 +01:00
|
|
|
- (instancetype)initWithDelegate: (id<TGVVideoSourceDelegate>)delegate;
|
2019-02-24 13:15:14 +01:00
|
|
|
- (void)sendVideoFrame: (CMSampleBufferRef)buffer;
|
|
|
|
- (TGVVideoResolution)maximumSupportedVideoResolution;
|
2019-04-15 01:43:10 +02:00
|
|
|
- (void)setVideoRotation: (unsigned int)rotation;
|
2019-02-24 13:15:14 +01:00
|
|
|
- (void)pauseStream;
|
|
|
|
- (void)resumeStream;
|
|
|
|
- (tgvoip::video::VideoSource*)nativeVideoSource;
|
|
|
|
|
2019-04-15 01:43:10 +02:00
|
|
|
- (void)_requestFrameRate: (unsigned int)frameRate;
|
|
|
|
|
2019-02-24 13:15:14 +01:00
|
|
|
@end
|