查询媒资详情

查询指定媒资信息

请求路径:/vod/v1/platform/media/detail?mediaId=xxx

请求方式:GET

参数要求:

名称 类型 是否必需 描述
mediaId String 媒资ID
videoId String 视频ID,不传返回所有视频,传值返回指定视频(针对不同分辨率)

请求示例:

GET /vod/v1/platform/media/detail?mediaId=media-837004265750528 HTTP/1.1

返回数据:

名称 类型 是否必需 描述
mediaId String 媒资ID
status int 媒资状态 -1 处理失败 0 申请 1 处理中 2 已完成 3 已发布 4 已停用
title String 媒资名称
description String 媒资描述信息
mediaType int 媒资类型,0 video 1 audio 2 file
coverImage String 封面图地址
mediaMetaInfo object 媒资详情
├─videoGroup list 视频资源组
├─├─videoId String 视频ID
├─├─extension String 扩展名
├─├─presetName String 分辨率目录,lud(对应超清) lhd(对应高清) lsd(对应标清)
├─├─playURL String 播放地址
├─imageGroup list 图片资源组
├─├─imageId String 图片ID
├─├─extension String 扩展名
├─├─showURL String 图片地址
createTime String 创建时间

返回示例

{
    "code": 1,
    "msg": "请求成功",
    "data": {
        "mediaId": "media-842750533402624",
        "spaceName": "space-8",
        "status": 3,
        "title": "婚姻合伙人国语-01.mp4",
        "mediaType": 0,
        "mediaMetaInfo": {
            "videoGroup": [
                {
                    "videoId": "video-842750535499776",
                    "extension": ".m3u8",
                    "resolution": "超清",
                    "presetName": "lud",
                    "bucketName": "hky-vod-output-test",
                    "objectName": "resource/media-842750533402624/lud/7060a33bd911404192efcc5a89cdcc30.m3u8",
                    "isEncryption": true,
                    "noAuth": true,
                    "playURL": "https://test-hky-video.kaikeba.com/resource/media-842750533402624/lud/7060a33bd911404192efcc5a89cdcc30.m3u8?MtsHlsUriToken=309e5f2fd8a943b89a4356d973f96828bcdc558db23c49f88036b36e677a239f",
                    "size": "361006812",
                    "duration": "2581.250066"
                },
                {
                    "videoId": "video-842750536024064",
                    "extension": ".m3u8",
                    "resolution": "标清",
                    "presetName": "lsd",
                    "bucketName": "hky-vod-output-test",
                    "objectName": "resource/media-842750533402624/lsd/38c6f976065f47d3835bce74aef4eb55.m3u8",
                    "isEncryption": true,
                    "noAuth": true,
                    "playURL": "https://test-hky-video.kaikeba.com/resource/media-842750533402624/lsd/38c6f976065f47d3835bce74aef4eb55.m3u8?MtsHlsUriToken=ee0259495d6b4720b2d3da00704ab594058c652ca5f84c8f89c335a570db050b",
                    "size": "312353352",
                    "duration": "2581.250066"
                },
                {
                    "videoId": "video-842750536024065",
                    "extension": ".m3u8",
                    "resolution": "高清",
                    "presetName": "lhd",
                    "bucketName": "hky-vod-output-test",
                    "objectName": "resource/media-842750533402624/lhd/53e3494d8e8b4f399bc137eb2d03388e.m3u8",
                    "isEncryption": true,
                    "noAuth": true,
                    "playURL": "https://test-hky-video.kaikeba.com/resource/media-842750533402624/lhd/53e3494d8e8b4f399bc137eb2d03388e.m3u8?MtsHlsUriToken=a546328904c84136abb3e48460278bc4caf2ada192c64e7bb27569c77a01e63c",
                    "size": "504046048",
                    "duration": "2581.250066"
                }
            ],
            "imageGroup": [
                {
                    "imageId": "img-842750536024066",
                    "type": "default",
                    "bucketName": "hky-vod-output-test",
                    "objectName": "resource/media-842750533402624/6afa2fcdc0da404d85dcf95e88cbe28a_00001.jpg",
                    "coverImage": false,
                    "showURL": "https://test-hky-video.kaikeba.com/resource/media-842750533402624/6afa2fcdc0da404d85dcf95e88cbe28a_00001.jpg"
                }
            ]
        },
        "createTime": "2020-12-08 17:17:58"
    }
}

results matching ""

    No results matching ""