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

#ifndef CNLivePlayerUrl_h
#define CNLivePlayerUrl_h
#import "CNLivePlayerManager.h"

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

#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 /* CNLivePlayerUrl_h */