9#import <Foundation/Foundation.h>
11#import "R5Connection.h"
13#import "R5Configuration.h"
14#import "R5AudioController.h"
15#include <AVFoundation/AVFoundation.h>
30 r5_stream_mode_streaming,
31 r5_stream_mode_publishing
35extern NSString *
const R5RecordVideoBitRateKey;
36extern NSString *
const R5RecordAudioBitRateKey;
37extern NSString *
const R5RecordAlbumName;
38extern NSString *
const R5RecordToCameraRoll;
80@property CVPixelBufferPoolRef pixelBufferPool;
82@property NSDictionary *pixelBufferAuxAttributes;
98-(void)play:(NSString *)streamName;
107- (void)play:(NSString *)streamName withHardwareAcceleration:(BOOL)hw;
115- (void)play:(NSString *)streamName withForcedRGBDecode:(BOOL)forceRGB;
127-(void)publish:(NSString *)streamName type:(enum R5RecordType)type;
137-(void) emptyPublishQueue;
144- (AVCaptureVideoPreviewLayer*) getPreviewLayer;
168-(enum R5StreamMode) mode;
176-(void)send:(NSString*)methodName withParam:(NSString*)param;
205-(CVPixelBufferRef)getStreamPixelBuffer;
212-(
void *)getStreamImageBytes;
219-(UIImage *) getStreamImage;
232-(void)updateStreamMeta;
250-(void)setFrameListener:(
void (^)(
void *, enum
r5_stream_format,
int,
int,
int))listenerBlock;
262-(void)setPlaybackAudioHandler:(
void (^)(uint8_t *,
int,
double))handlerBlock;
264-(void)recordWithName:(NSString*)fileName;
265-(void)recordWithName:(NSString*)fileName withProps:(NSDictionary*)properties;
267-(void)endLocalRecord;
272-(void)deactivate_display;
273-(void)activate_display;
275- (BOOL)usesHardwareAcceleration;
316-(void)onR5StreamStatus:(
R5Stream *)stream withStatus:(
int) statusCode withMessage:(NSString*)msg;
r5_stream_format
Definition: global.h:162
Controller Object for R5Stream and R5Microphones. A shared instance is used unless otherwise defined ...
Definition: R5AudioController.h:28
The main connection class for R5Pro. This establishes the connection to the server....
Definition: R5Connection.h:20
R5Microphone encapsulates an AVCaptureDevice and provides data to the R5Stream for publishing.
Definition: R5Camera.h:46
The main stream class of Red5Pro. Utilizes the R5Connection to connect and communicate with a server ...
Definition: R5Stream.h:43
BOOL pauseAudio
Definition: R5Stream.h:72
R5AudioController * audioController
Definition: R5Stream.h:51
NSObject * client
Definition: R5Stream.h:67
BOOL pauseVideo
Definition: R5Stream.h:77
NSObject< R5StreamDelegate > * delegate
Definition: R5Stream.h:62
The video source provides all video frames to the encoder for transmission over the socket.
Definition: R5VideoSource.h:24
Delegate for handling R5Stream events.
Definition: R5Stream.h:284