3. 播放鉴权.md
3.19 KB
/* Title: 3.1 播放鉴权 Sort: 14 */
URL: http://console.open.cnlive.com/open/api/lic/checkVideo
请求方式: POST
返回格式: JSON
请求参数说明:
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| sp_id | true | String | 服务提供商ID |
| prdId | true | String | 视频的产品ID |
| mamNodeId | true | String | 视频的MAM节点ID |
| sid | true | Integer | 用户ID |
| vipProductFlag | true | Integer | 0-全部免费,1-VIP 0元,2-VIP付费 |
| uid | true | String | WEB平台:探针uid;app平台:设备号ID |
| plat | true | String | 平台类型 |
| sign | true | String | 签名 |
返回格式说明:
成功:
{
"errorCode":"0",
"errorMessage":"成功"
}
失败:
{
"errorCode": "34",
"errorMessage": "商品不存在",
}
导购页:
{
"errorCode": "-1",
"result": {
"title": "本片为付费视频,LiveShow会员可使用免费券观看",
"choices": [
{
"choiceId": "member",
"values": []
},
{
"choiceId": "single",
"values": [
{
"value": 5
},
{
"value": 3
}
]
},
{
"choiceId": "promCode",
"values": []
},
{
"choiceId": "freeCoupon",
"values": [
{
"value": 1
}
]
},
{
"choiceId": "recharge",
"values": []
}
]
}
}
返回参数说明:
| errorCode | -1=导购页 |
| result | 结果对象 |
| title | 导购标题 |
| choices | 导购项数组 |
| choiceId | member-购买会员,single-单片购买,promCode-兑码观看,recharge-续费观看,freeCoupon-免费券观看 |
| values | freeCoupon-显示剩余券数,single-按顺序显示非会员价和会员价(均以分为单位) |