Red5Pro IOS Client SDK

 10.0.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
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
40typedef 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
Controller Object for R5Stream and R5Microphones. A shared instance is used unless otherwise defined ...
Definition: R5AudioController.h:28
R5Camera encapsulates an AVCaptureDevice and provides video data to the R5Stream for publishing.
Definition: R5Camera.h:18
R5Microphone encapsulates an AVCaptureDevice and provides data to the R5Stream for publishing.
Definition: R5Camera.h:46
int bitrate
bitrate in kbps
Definition: R5Camera.h:50
int sampleRate
sample rate to capture
Definition: R5Camera.h:48
int channels
number of channels to capture
Definition: R5Camera.h:49
R5AudioController * audioController
Audio Controller for recording. Defaults to shared instance.
Definition: R5Camera.h:51
AVCaptureDevice * device
Input device.
Definition: R5Camera.h:47
The video source provides all video frames to the encoder for transmission over the socket.
Definition: R5VideoSource.h:24