1.2 获取直播URL接口.md 971 Bytes

获取直播URL接口


URL: http://api.cnlive.com/open/api3/play/IPS/liveplay?cid=xinyingshi&sp_id=xxxx


接口说明: 返回直播播放地址


请求方式: HTTP GET


返回格式: 302


请求参数说明:

参数名 参数类型 必选 参数说明
sp_id string true 应用ID
cid string true 直播频道ID
uid string false 用户标识(uuid_时间戳),不传为0
sid string false 用户ID,不传为0
type string false hls(H5/APP使用),mp4(Flash使用),不传则默认为hls
retry int false 重试次数,从0开始,不断累加,不传为0
rate int false 1-流畅,2-标清,3-高清,4-超清,不传为0
sign String false APP必须使用,H5不用,签名规则见签名详情