CNLiveStat.h
1.14 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// CNLiveStat.h
// CNLiveStat
//
// Created by 雷浩杰 on 2016/11/10.
// Copyright © 2016年 雷浩杰. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CNLiveStat : NSObject
/*
* 获取SDK版本号
*/
+ (NSString *)getVersion;
/*
* 注册APP 注册成功或失败信息以log形式输出(CNLiveStatManager registerApp Success 或者 CNLiveStatManager registerApp Error :)
*/
+ (void)registerApp:(NSString *)appId appKey:(NSString *)appKey;
/* 数量统计
*
* eventID 事件ID
*
*/
+ (void)event:(NSString *)eventID;
/* 时长统计 在调用endEvent:方法前,多次使用同一个eventID调用此方法,只会将第一次视为有效调用
*
* eventID 事件ID
*
*/
+ (void)beginEvent:(NSString *)eventID;
/* 时长统计 多次使用同一个eventID调用此方法,只会将第一次视为有效调用
*
* eventID 事件ID
*
*/
+ (void)endEvent:(NSString *)eventID;
/* 直播播放统计
*
* channelId 直播channelId
*
*/
+ (void)statLivePlayerWithChannelId:(NSString *)channelId;
/* 点播播放统计
*
* vId 点播vId
*
*/
+ (void)statVodPlayerWithVId:(NSString *)vId;
@end