PlayParameter.java 1.05 KB

package com.wd.player.constant;

/**
 * 播放参数, 包含:
 * vid, vidSts, akId, akSecre, scuToken
 * 
 * @author lvjinhui
 */
public class PlayParameter {

    /**
     * type, 用于区分播放类型, 默认为vidsts播放
     * vidsts: vid类型
     * localSource: url类型
     */
    public static String PLAY_PARAM_TYPE = "vidsts";

    private static final String PLAY_PARAM_VID_DEFAULT = "9fb028c29acb421cb634c77cf4ebe078";

    /**
     * vid, 初始为: 9fb028c29acb421cb634c77cf4ebe078
     */
    public static String PLAY_PARAM_VID = "";

    public static String PLAY_PARAM_REGION = "cn-shanghai";

    /**
     * akId
     */
    public static String PLAY_PARAM_AK_ID = "";

    /**
     * akSecre
     */
    public static String PLAY_PARAM_AK_SECRE = "";

    /**
     * scuToken
     */
    public static String PLAY_PARAM_SCU_TOKEN = "";

    /**
     * url类型的播放地址, 初始为:http://player.alicdn.com/video/aliyunmedia.mp4
     */
    public static String PLAY_PARAM_URL =
        "http://player.alicdn.com/video/aliyunmedia.mp4";

}