CNLiveQNLivingManager.h
1.03 KB
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
//
// CNLiveQNLivingManager.h
// QNLiveStreamingDemo
//
// Created by iOS on 17/4/8.
// Copyright © 2017年 zhulin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CNLiveStreamingKit.h"
#import "CNLiveMoviePlayerKit.h"
@interface CNLiveQNLivingManager : NSObject
/**
* 应用ID(只读)
*/
@property (nonatomic, readonly) NSString *appId;
/**
* 应用KEY(只读)
*/
@property (nonatomic, readonly) NSString *appKey;
+ (CNLiveQNLivingManager *)manager;
/**
* 初始化 StreamingSession 的运行环境,需要在 -application:didFinishLaunchingWithOptions: 方法下调用该方法
* @param appId 在open.cnlive.com网站申请得到的appId
* @param appKey 在open.cnlive.com网站申请得到的appKey
* @warning 必传参数
* @warning 不调用该方法将导致 CNLiveStreamingKit 对象无法初始化
*/
- (void)initEnvWithAppId:(NSString *)appId appKey:(NSString *)appKey;
/**
@abstract 获取版本号
*/
+ (NSString *)getVersion;
@end