Video Transcoding Callback

Last update:2023-02-24 16:00:07

This callback configuration allows you to obtain the video transcoding result.

Request Description

POST request

Response

For common responses, please refer to the Common Responses.

Parameter Type Description
videoId string Video ID
encrypt int Whether the video is encrypted or not :
0 (Unencrypted)
1 (Encrypted)
swfCode string Video swf code
htmlCode string Video html url, no longer available
autoCode string Adaptive code that embeds an h5 player. For the encrypted video, it is empty
tryWatchAutoCode string Video adaptive code for preview, for the encrypted video, it is empty
customCode string Custom playback code. The default is empty. If you have individual needs, please contact customer service
videoUrl array Video url list
tryWatchVideoUrl array Video url list for preview

videoUrl and tryWatchVideoUrl

Parameter Type description
urlType string PC/Mobile
originUrl string Original video url
fluentUrl string LD video url
sdUrl string SD video url
highUrl string HD video url
hdPullUrl string UHD video url

Example

Output

Example of URL-safe Base64 encoding response:

{
    "code": 200,
"data": {
	"videoId ": 8731c067016b1000d7d05b5600000000,
        "encrypt": 0,
        "htmlCode": "",
 	"autoCode":"https://cloudv.chinanetcenter.com/player/auto-play.action?videoId=9B0F7BA8BCB9D056D4C24ADDBF821D10&userId=6A313F452ADC20F7&playerType=11",
        "swfCode": "https://cloudv.chinanetcenter.com/swf/player/6A313F452ADC20F7_9B0F7BA8BCB9D056D4C24ADDBF821D10_true_11/StrobeMediaPlayback.swf",
        "customCode": "",	
        "videoUrl": [
            {
                "fluentUrl": "",
                "hdPullUrl": "",
                "highUrl": "",
                "originUrl": "http://live.ovptest.haplat.net/live/201708/4101630234a74ee8864e56ea88e5d290_20170801171220/4101630234a74ee8864e56ea88e5d290_20170801171220_live2vod.mp4",
                "sdUrl": "",
                "urlType": "PC"
            },
            {
                "fluentUrl": "",
                "hdPullUrl": "",
                "highUrl": "",
                "originUrl": "http://live.ovptest.haplat.net/live/201708/4101630234a74ee8864e56ea88e5d290_20170801171220/4101630234a74ee8864e56ea88e5d290_20170801171220_live2vod.mp4",
                "sdUrl": "",
                "urlType": "Mobile"
            }
        ]
    },
    "message": "Success"
}

Error code

For common error code, please refer to Common Responses.

Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!