请求URI: /openapi/v1/mss

请求方式: GET

请求参数:

名称 位置 类型 描述 必须
token header string 调用令牌
mssId query integer 媒资ID
url query string 媒资Url

响应字段说明:

名称 说明
title 名称
mssId 媒资ID
url 媒资URL
size 视频的文件大小
duration 时长,秒
height 分辨率,高
width 分辨率,宽
thumbnail 封面图
type 类型
status 状态1正常2删除
expireTime 过期时间
start 视频的开始时间
end 视频的结束时间
filename 文件名
uptime 视频文件的上传时间
isForever 是否永久存储1是2否
m3u8 为m3u8的播放地址,如果该值不存在,表示不支持手机播放

媒资类型说明:

type 说明
0 用户上传
1 现场存储
2 云制作存储-云剪辑
4 电视存储
5 电台存储
6 信源存储
8 云制作存储-云拆条
9 云制作存储-云非编

m3u8字段说明:

字段名 说明
m3u8 源码率 m3u8地址
m3u8_240 240P m3u8地址
m3u8_360 360P m3u8地址
m3u8_480 480P m3u8地址
m3u8_720 720P m3u8地址
m3u8_1080 1080P m3u8地址
mp4 源码率 mp4地址
mp4_240 240P mp4地址
mp4_360 360P mp4地址
mp4_480 480P mp4地址
mp4_720 720P mp4地址
mp4_1080 1080P mp4地址

请求示例:

curl --location --request GET 'http://openapi.v1.guangdianyun.tv/openapi/v1/mss?mssId=3529224

响应示例:

{
    "code": 200,
    "msg": "OK",
    "data": {
        "mssId": 3529224,
        "adaptive": "",
        "aid": 0,
        "aodianType": "live",
        "app": "lms_25492",
        "childId": 0,
        "duration": 3604,
        "end": 1588848651,
        "expireTime": 0,
        "filemtime": 1588845050,
        "filename": "",
        "height": 720,
        "isForever": "1",
        "mss_type": "video",
        "origin": 0,
        "roomId": 0,
        "soldierId": 0,
        "start": 1588845050,
        "status": 1,
        "stream": "program_live_channel_38387",
        "thumbnail": "http://cdn-dvr.aodianyun.com/pic/live-vod/images/lms_25492.program_live_channel_38387.1588845050/0/0",
        "title": "培训",
        "transcoding": 0,
        "type": 1,
        "ucode": "",
        "uptime": 1588848730,
        "url": "http://25492.live-vod.cdn.aodianyun.com/m3u8/0x0/lms_25492.program_live_channel_38387.1588845050/lms_25492.program_live_channel_38387.1588845050.m3u8",
        "user": 1003,
        "width": 1280,
        "m3u8": {
            "m3u8": "http://25492.live-vod.cdn.aodianyun.com/m3u8/0x0/lms_25492.program_live_channel_38387.1588845050/lms_25492.program_live_channel_38387.1588845050.m3u8"
        },
        "size": {
            "size": 86457758
        }
    }
}
最后编辑: 广电云技术部  文档更新时间: 2024-11-14 10:47   作者:广电云技术部