媒资详情

Example

GET 获取媒资详情

https://global.talk-cloud.net/vod/webapi/media/{asset}

参数名 必选 类型 说明
Content-Type string application/json
Accept string application/json
version string 版本号:(预设:v2)
Tk-authkey string 企业Key
Timestamp string token生产时间:(预设:1641600967)
Tk-token string 加密token:(预设:59O8J455S192Cw82f5bfxVB052NhsUpK9ToBVw==)
参数名 是否必选 类型 说明
asset string 媒资ID
参数名 类型 说明
result int 0成功 非0失败
msg string 请求消息
data object 媒资
data.id int 视频Id
data.width int 视频宽度(单位:像素)
data.height int 视频高度(单位:像素)
data.duration string 时长(秒)
data.size int 文件大小(单位:字节)
data.playType string 文件类型
data.assetId string 媒资Id
data.videoTitle string 视频标题
data.playState int 播放状态 0正常 1禁播
data.nomarlAddress string 原视频播放地址
data.videoList objectList 视频列表
data.videoList.id int 转码视频ID
data.videoList.playType string 文件类型
data.videoList.playUrl string 文件地址
data.videoList.quality string 清晰度。包含如下取值:FLUENT;流畅。SD:标清;HD:高清;FULL_HD:超清;
data.videoList.width int 视频宽度(单位:像素)
data.videoList.height int 视频高度(单位:像素)
data.videoList.duration string 时长(秒)
data.videoList.size int 文件大小(单位:字节)
data.thumbNailUrl object 封面
data.thumbNailUrl.url string 路径
data.encryptInfo object 加密Object
data.encryptInfo.encryptStatus int 0 不加密 1加密
data.encryptInfo.encryptPass string 密码 见解密文档
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
    "result":0,
    "data":{
        "id":2021,
        "width":1280,
        "height":720,
        "duration":"269",
        "size":57927975,
        "assetId":"3701925924894696570",
        "playType":"mp4",
        "companyId":10785,
        "transcodingStatus":2,
        "videoList":[
            {
                "id":930,
                "quality":"",
                "width":640,
                "height":360,
                "duration":"269.4",
                "size":13792188,
                "playType":"MP4",
                "bitRate":409566,
                "companyId":10785,
                "playUrl":"http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/v.f100010.mp4",
                "previewUrl":"https:\/\/demo.talk-cloud.net\/static\/frame_vodPlayer_1.0.0.14\/index.html?companyId=10785&playUrl=http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/v.f100010.mp4"
            },
            {
                "id":931,
                "quality":"",
                "width":640,
                "height":360,
                "duration":"269.4",
                "size":13798748,
                "playType":"MP4",
                "bitRate":409760,
                "companyId":10785,
                "playUrl":"http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/v.f100010.mp4",
                "previewUrl":"https:\/\/demo.talk-cloud.net\/static\/frame_vodPlayer_1.0.0.14\/index.html?companyId=10785&playUrl=http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/v.f100010.mp4"
            },
            {
                "id":932,
                "quality":"",
                "width":640,
                "height":360,
                "duration":"269.4",
                "size":13790294,
                "playType":"MP4",
                "bitRate":409509,
                "companyId":10785,
                "playUrl":"http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/v.f100010.mp4",
                "previewUrl":"https:\/\/demo.talk-cloud.net\/static\/frame_vodPlayer_1.0.0.14\/index.html?companyId=10785&playUrl=http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/v.f100010.mp4"
            }
        ],
        "thumbNailUrl":{
            "url":"http:\/\/1500006773.vod2.myqcloud.com\/4384c767vodtranscq1500006773\/d03e87b53701925924894696570\/sampleSnapshot\/sampleSnapshot_116125_1.jpg",
            "assetId":"3701925924894696570"
        },
        "encryptInfo":{
            "encryptStatus":0,
            "encryptPass":"Od0FiQiztqXjT+nQ6skhCyrKD1aDe1GqaOUVCb3Uahk="
        },
        "nomarlAddress":"http:\/\/1500006773.vod2.myqcloud.com\/6c9ad9bfvodcq1500006773\/d03e87b53701925924894696570\/f0.mp4",
        "videoTitle":"摆渡人1",
        "playState":0,
        "previewUrl":"https:\/\/demo.talk-cloud.net\/static\/frame_vodPlayer_1.0.0.14\/index.html?companyId=10785&playUrl=http:\/\/1500006773.vod2.myqcloud.com\/6c9ad9bfvodcq1500006773\/d03e87b53701925924894696570\/f0.mp4"
    },
    "msg":"成功"
}

© 2016-2023 北京拓课网络科技有限公司 版权所有  京ICP备17018423号-1 京公网安备11010502043461号