POST {version}/Course/PPLiveTranscodeCallbackUrl

点播或回放转码通知Url

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

PPLiveTranscodeCallbackDto
NameDescriptionTypeAdditional information
room_id

房间ID

integer

None.

session_id

长期房间的序列号,普通房间无此参数

integer

None.

version

裁剪回放的版本号,非裁剪的回放无此参数

integer

None.

video_id

云端录制视频ID

integer

None.

status

视频状态(20:上传完成 30:转码失败 100:转码成功)

integer

None.

preface_url

封面url,(转码成功回调才有)

string

None.

total_size

视频大小,单位是字节

integer

None.

total_transcode_size

总视频大小(源文件 + 所有转码后文件)单位:字节(转码成功回调才有)

integer

None.

length

视频时长,单位为秒(转码成功回调才有)

integer

None.

file_md5

视频文件md5值

string

None.

now_definition

当前已转出的清晰度,多种清晰度以英文逗号分隔 low/ std / high / super / 1080p(转码成功回调才有)

string

None.

origin_definition

始视频清晰度 low / std / high / super / 1080p(转码成功回调才有)

string

None.

qid

标记一次请求的唯一ID

string

None.

timestamp

unixstamp时间戳,秒数

integer

None.

sign

签名字段

string

None.

Request Formats

application/json, text/json

Sample:
{
  "room_id": 1,
  "session_id": 2,
  "version": 3,
  "video_id": 4,
  "status": 5,
  "preface_url": "sample string 6",
  "total_size": 7,
  "total_transcode_size": 8,
  "length": 9,
  "file_md5": "sample string 10",
  "now_definition": "sample string 11",
  "origin_definition": "sample string 12",
  "qid": "sample string 13",
  "timestamp": 14,
  "sign": "sample string 15"
}

application/xml, text/xml

Sample:
<PPLiveTranscodeCallbackDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eshikao.Models.Course">
  <file_md5>sample string 10</file_md5>
  <length>9</length>
  <now_definition>sample string 11</now_definition>
  <origin_definition>sample string 12</origin_definition>
  <preface_url>sample string 6</preface_url>
  <qid>sample string 13</qid>
  <room_id>1</room_id>
  <session_id>2</session_id>
  <sign>sample string 15</sign>
  <status>5</status>
  <timestamp>14</timestamp>
  <total_size>7</total_size>
  <total_transcode_size>8</total_transcode_size>
  <version>3</version>
  <video_id>4</video_id>
</PPLiveTranscodeCallbackDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PPLiveTranscodeCallbackDto'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />