智慧保安APP验收版本
shuishen
2021-12-02 56ee0734fc0cbca40f992823a636ec8feebd1f80
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
//  ARStreamingKit.h
//  ARtcKit
//
//  Created by 余生丶 on 2020/12/24.
//  Copyright © 2020 zjq. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import "ARtcEngineKit.h"
 
NS_ASSUME_NONNULL_BEGIN
 
@interface ARStreamingKit : NSObject
 
/**
设置RtcEngine对象。
 
@param rtcKit  一个 ARtcEngineKit 实例对象。
 
@return 0方法调用成功,<0方法调用失败
*/
- (int)setRtcEngine:(ARtcEngineKit *)rtcKit;
 
/**
开始推Rtmp的流
 
@param url  rtmp流地址
 
@return 0方法调用成功,<0方法调用失败
*/
- (int)pushStream:(NSString *_Nonnull)url;
 
/**
停止推Rtmp的流
 
@return 0方法调用成功,<0方法调用失败
*/
- (int)unPushStream;
 
/**
设置推流模式。
 
@param mode  推流模式,详见ARStreamPushMode。
 
@return 0方法调用成功,<0方法调用失败
*/
- (int)setMode:(ARStreamPushMode)mode;
 
/**
设置合流参数
 
@param transcoding  合流参数,详见ARLiveTranscoding。
*/
- (int)setLiveTranscoding:(ARLiveTranscoding *_Nonnull)transcoding;
 
/**
 销毁 ARStreamingKit 实例
*/
- (void)destroy;
 
@end
 
NS_ASSUME_NONNULL_END