CNLivePlayerTools.h
1 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
//
// CNLivePlayerTools.h
// CNLivePlayer_Example
//
// Created by CNLive-zxw on 2019/7/26.
// Copyright © 2019 153993236@qq.com. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CNLivePlayerTools : NSObject
/**
* SHA1加密
*/
+ (NSString *)encryptionSignWithUrl:(NSString *)url parameter:(NSDictionary *)parameter;
+ (NSString *)sha1:(NSString *)string;
+ (NSString *)signvalue:(NSDictionary*)parameter;
/**
* 获取UUID_Timestamp
*/
+ (NSString *)getUidForTimestamp:(NSString *)timestamp;
//错误信息
+ (NSError *)customErrorWithResponseObject:(id)responseObject errorInfo:(NSString *)errorInfo;
/**
* 验证是是否为是空字符串
*/
+ (BOOL)isEmptyString:(NSString *)string;
/**
* 获取时间戳
*/
+ (NSString *)getTimestamp;
#pragma mark - 方法
/**
* 视频出错,上传接口
*/
+ (void)errorStat:(NSString *)errorString contentId:(NSString *)contentId idName:(NSString *)idName;
+ (void)statSDKWithContentId:(NSString *)contentId idName:(NSString *)idName;
@end