/*---------------------------------------------------------------------------*/
/* ActiveCamera.h                                                            */
/* copyright (c) innovaphone 2015                                            */
/*                                                                           */
/*---------------------------------------------------------------------------*/

@class IosEvent;

@interface ActiveCamera : NSObject <AVCaptureVideoDataOutputSampleBufferDelegate>

@property (nonatomic) NSString *uniqueID;
@property (nonatomic) bool startFlag;
@property (nonatomic) NSString *context;
@property (nonatomic) int preferredWidth;
@property (nonatomic) int preferredHeight;
@property (nonatomic) bool hdVideo;

- (id) initWithUniqueID:(NSString *)uniqueID ios_event:(IosEvent *)ios_event videoDispatchQueue:(dispatch_queue_t)videoDispatchQueue;
- (bool) updateRotation;
- (bool) start;
- (void) stop;
- (void) requestFullIntra;
- (void) blankOutVideo:(bool)blank;
- (void) changePreviewCoder:(int)coder;
- (void) changeWebcamCoder:(int)coder;

@end
