Red5Pro IOS Client SDK

 7.3.0
Core SDK for IOS
R5Camera.h
1 //
2 // R5Camera.h
3 // red5streaming
4 //
5 // Created by Andy Zupko on 10/31/14.
6 // Copyright (c) 2014 Infrared5. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <AVFoundation/AVFoundation.h>
11 #import "R5VideoSource.h"
12 #import "R5AudioController.h"
13 
17 @interface R5Camera : R5VideoSource
18 
19 @property CMSampleBufferRef currentSampleBuffer;
20 
21 @property (nonatomic) AVCaptureDevice *device;
22 
31 -(id)initWithDevice:(AVCaptureDevice*)device andBitRate:(int)bitRate;
32 
33 
34 @end
35 
40 typedef void (^AudioModHandle)(NSMutableData*, double);
41 
45 @interface R5Microphone : NSObject
46 
47 @property AVCaptureDevice *device;
48 @property int sampleRate;
49 @property int channels;
50 @property int bitrate;
52 @property AudioModHandle processData;
53 
61 -(id)initWithDevice:(AVCaptureDevice*)device;
62 
63 
64 @end
int sampleRate
sample rate to capture
Definition: R5Camera.h:48
R5Microphone encapsulates an AVCaptureDevice and provides data to the R5Stream for publishing...
Definition: R5Camera.h:45
R5AudioController * audioController
Audio Controller for recording. Defaults to shared instance.
Definition: R5Camera.h:51
int channels
number of channels to capture
Definition: R5Camera.h:49
Controller Object for R5Stream and R5Microphones. A shared instance is used unless otherwise defined ...
Definition: R5AudioController.h:28
int bitrate
bitrate in kbps
Definition: R5Camera.h:50
R5Camera encapsulates an AVCaptureDevice and provides video data to the R5Stream for publishing...
Definition: R5Camera.h:17
AudioModHandle processData
block to handle modifying or replacing raw audio from the microphone
Definition: R5Camera.h:52
The video source provides all video frames to the encoder for transmission over the socket...
Definition: R5VideoSource.h:23
AVCaptureDevice * device
Input device.
Definition: R5Camera.h:47