-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathlibRTMPClient.h
46 lines (33 loc) · 937 Bytes
/
libRTMPClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// libRTMPClient.h
// PresentRTMPStreamModule
//
// Created by Justin Makaila on 7/20/13.
// Copyright (c) 2013 Present, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <librtmp/rtmp.h>
#import <librtmp/log.h>
#import <librtmp/amf.h>
#import <openssl/crypto.h>
@protocol libRTMPClientDelegate <NSObject>
@optional
-(void)clientDidConnect;
-(void)clientDidConnectToStream;
-(void)clientDidDisconnect;
-(void)clientDidWriteData;
-(void)clientDidFailWithError:(NSError*)error;
@end
@interface libRTMPClient : NSObject
@property (unsafe_unretained) id<libRTMPClientDelegate> delegate;
-(id)init;
-(id)initWithDelegate:(id)delegate;
-(void)connect;
-(void)disconnect;
-(BOOL)isReadyForData;
-(BOOL)isConnected;
-(BOOL)isStreaming;
-(void)writeNALUToStream:(NSArray*)data time:(double)pts;
-(void)writeAACDataToStream:(NSData*)data time:(double)pts;
-(void)writeAvcCHeaderToStream:(NSData*)data;
@end