/**
 * 
 */
package cn.com.wasu.main;

import basic.BuilderTypeManager.BuildType;

/**
 * cn.com.wasu.main.config.GlobalConfig
 * 
 * @author zhangrm@wasu.com <br/>
 *         create at 2014年10月16日 下午4:57:25
 */
public final class Common {
	/** SDK版本号 **/
	public static final String SDK_VERSION = "1.1.0";

	/** 用于调整UI动态显示调整的相关参数 **/
	public static final String DATA_UI_PARAMS = "UI_Params";

	/** 开机广告展示时间 **/
	public static final int BOOT_DURATION = 5000;

	/** 播放链接的解密方式 **/
	public static final boolean UrlDecryptByJar = true;

	/** 是否显示视频广告 **/
	public static final boolean adVideo = true;

	/** 暂停时，是否显示视频名称 **/
	public static final boolean showTitleWhenPause = false;

	/** 如果是收费节目，最长可以看的分钟数 **/
	public static final int MAX_PREVIEW_MINUTES = 5;

	/**
	 * 首页退出时两次返回键的间隔
	 */
	public static final int EXIT_DURATION = 3000;

	/** 是否使用虹软的播放内核 **/
	public static final boolean useArcMediaPlayer = false;

	private static final int VCTYPE_CS = 1;
	private static final int VCTYPE_BS = 2;

	private static final int DEVICETYPE_ANDROID = 1;
	private static final int DEVICETYPE_OTHER = 2;

	public static final int vcType = VCTYPE_BS;
	public static final int deviceType = DEVICETYPE_ANDROID;

	/**
	 * 网页加载超时时间
	 */
	public static final int WEB_LOAD_TIMEOUT = 20000;

	public static final int DEFAULT_PAGE_SIZE = 20;

	/**
	 * 默认播放码率
	 */
	public static final long DEFAULT_PLAY_RATE = 2500000;

	public static final String APP_NAME = "cs4.0";
	
	/**
	 * cms数据访问域名、v和key
	 */
	public static final String URL_KEY ="1";
	public static final String URL_V ="1";
	
	public static final String WASU_PACKAGE_ID = "40814315811460000001283";
	public static final String SOHU_CATAGORYBIZ = "40814652052210000001988";
	public static final String WASU_MONTH_PLAN_BUY = "40414189714680000002551";
	public static final String SOHU_MONTH_PLAN_BUY = "40414579811740000003902";

	private static boolean isLeTv =  BuildConfig.FLAVOR.equalsIgnoreCase(ChannelFlavor.LETV_MARKET);
	
	/** ---------------------------------地址配置------------------------------------ **/
	/**
	 * APP默认配置信息URL
	 */
	public static final String CONFIG_URL = BuildType.HTTP_DOMAIN+"/?s=2002" + (isLeTv? "|" + BuildType.ChannelId:"") + "&p=sntConfig&k=1&v=1" + (isLeTv ? "&c=" + BuildType.ChannelId : "");
	
	/**
	 * 首页地址
	 */
	public static final String HOME_URL = BuildType.HTTP_DOMAIN + "?s=" + BuildType.SITE_ID + (isLeTv? "|" + BuildType.ChannelId:"") + "&p=sntHome&k=1&v=4" + (isLeTv ? "&c=" + BuildType.ChannelId : "");

	/**
	 * 追剧url
	 * **/
	public static final String FOCUS_URL=BuildType.HTTP_DOMAIN + "?s=" + BuildType.SITE_ID + (isLeTv? "|" + BuildType.ChannelId:"") + "&p=sntAssetFollow&k=1&v=1&mode=2&assetIds=";

	/** 
	 * 统一登录地址 
	 */
	public static final String loginurl = BuildType.HTTP_USER + "/login/cs/login.jsp";
			
	/** 
	 * 用户中心地址 
	 */
	public static final String UserCenterUrl = BuildType.HTTP_USER + "/business/" + BuildType.SITE_ID + "/jsp/business/index.jsp?";

    /**
     * 第三方订包地址
     */
    public static final String OtherOrderUrl = BuildType.HTTP_USER + "/business/other/jsp/otherOrder.jsp?";


	
	/**
	 * 阿里统计appkey
	 * **/
	public static final String appKey = "wdm_13662659";
	
	/**
	 * 阿里统计appsecret
	 * **/
	public static final String appSecret="8687754b673b4e75e9d8955eb3a8eaaf";

    /**
     * 搜狐app key
     */
    public static final String sohuAppKey = "160308A049E29068794CD7C2B658";
	/**
	 * 咪咕app key
	 */
	public static final String  miguAppKey= "89e8122e73764667a87fbdb6a2e42c89";
	/**
	 * 咪咕 密钥
	 */
	public static final String  miguSecretKey = "2e36721def969986";

}
