获取指定视频信息

优质
小牛编辑
131浏览
2023-12-01

请求header

GET /v1/videos/{视频id}
Authorization:Bearer {ACCESS TOKEN}
Content-Type:application/json

注:

请将上方的{ACCESS TOKEN}替换为您的ACCESS TOKEN

请将"{视频id}"替换您需要获取的视频id

返回

{
  "id": 27379,
  "act_id": 17630,
  "name": "234.flv",
  "video_url": "http://vod.mudu.tv/example.flv",
  "video_size": 5999079,
  "m3u8": "http://vod.mudu.tv/example.m3u8",
  "m3u8_480": "http://vod.mudu.tv/example.m3u8",
  "m3u8_720": "http://vod.mudu.tv/example.m3u8",
  "m3u8_1080": "http://vod.mudu.tv/example.m3u8",
  "duration": 0,
  "width": 0,
  "height": 0,
  "cover_url": "https://www.xnip.cn/wp-content/uploads/2021/docimg28/29-x5ojfbbmvhg.jpg",
  "watch_url": "http://mudu.tv/show/videolink2/27379/origin",
  "embed_url": "http://mudu.tv/show/videolink/27379/origin",
  "manager": 0,
  "upload_time": "2017-08-01 17:21:20",
  "start_time": "2017-08-01 17:21:20",
  "end_time": "2017-08-01 18:31:47",
  "is_bookmarked": 1,
  "bookmarks":[
      {
          "id": "5o1vr3o2",
          "desc": "第一个打点",
          "time": "00:00:02"
      },
      {
          "id": "nmz423l3",
          "desc": "第二个打点",
          "time": "00:00:07"
      },
      {
          "id": "5mva6amk",
          "desc": "第三个打点",
          "time": "00:00:12"
      }
  ]
}

返回参数说明

参数描述类型
id视频idinteger
act_id频道idinteger
name视频名称string
video_url视频原始地址string
video_size视频大小(字节)integer
m3u8视频m3u8地址string
m3u8_480视频m3u8_480地址string
m3u8_720视频m3u8_720地址string
m3u8_1080视频m3u8_1080地址string
duration视频长度(秒)integer
width视频宽度integer
height视频高度integer
cover_url视频封面地址string
watch_url视频播放地址string
embed_url视频嵌入地址string
manager频道管理员ID,视频所属非频道管理员时值为0integer
upload_time视频上传时间datetime
start_time视频开始时间datetime
end_time视频结束时间datetime
is_bookmarked是否是打点视频integer
bookmarks打点信息json array