CNLivePlayerConst.h 1.26 KB
//
//  CNLivePlayerConst.h
//  CNLivePlayer
//
//  Created by CNLive-zxw on 2019/8/14.
//  Copyright © 2019 153993236@qq.com. All rights reserved.
//

#ifndef CNLivePlayerConst_h
#define CNLivePlayerConst_h

#pragma mark - 版本号
#define PlayerSDKVersion @"0.0.1"     //播放器SDK版本

#pragma mark - 探针
#define StatUrl [CNLivePlayerManager manager].isTestEnvironment?@"http://app.sta.cnlive.com/app.jpg": @"http://app.sta.cnlive.com/app.jpg"
#define StatVersion @"4.0"  //探针版本
#define StatAppVersion  ([[[NSBundle mainBundle] infoDictionary] objectForKey: @"CFBundleShortVersionString"])

#pragma mark - 鉴权
#define authUrl [NSString stringWithFormat:@"%@/platform/valid", [CNLivePlayerManager manager].isTestEnvironment ? @"http://test.open.cnlive.com/openapi/api2" : @"http://api.cnlive.com/open/api2"]

#pragma mark - 点播
#define vodUrl [CNLivePlayerManager manager].isTestEnvironment ? @"http://test.open.cnlive.com/openapi/api2/vod_ips/vodplayByAPP":@"http://api.cnlive.com/open/api2/vod_ips/vodplayByAPP"

#pragma mark - 直播
#define liveUrl [CNLivePlayerManager manager].isTestEnvironment ? @"http://test.open.cnlive.com/openapi/api2/live_ips/liveplayByAPP":@"http://api.cnlive.com/open/api2/live_ips/liveplayByAPP"

#endif /* CNLivePlayerConst_h */