This tutorial guides you through how to use VOD event notifications in "normal callback" and "reliable callback" modes.
To get event notifications through normal callback, you need to deploy a callback receiving service on a server with a public IP. Below describes how to deploy such a service on a CVM instance as an example:
python NotificationReceiveServer.py
After the command is executed, the standard output of the CVM instance should print Started httpserver on port 8080
, indicating that the service process has started and is listening on port 8080.http://134.XXX.XXX.167:8080
in a browser, and the standard output of the CVM instance should print the following HTTP request information.http://134.XXX.XXX.167:8080
.Please download the demo video to your local file system for getting started.
FileId
) in the video list in the Uploaded column.Type
is Transcode
) and time point screencapturing for cover generation (where Type
is CoverBySnapshot
).
At this point, you have uploaded a video and performed a transcoding task on it. After the upload and transcoding were completed, your callback receiving service received notifications for video upload completion and task flow status change.
Select Media Assets > Video Management on the left sidebar, select Uploaded, and click Upload Video.
In the Upload Video dialog box that pops up, select Local Upload, click Select Video, and upload the demo video to the VOD platform.
After performing the upload operation, you will see the video upload progress in the Uploading column.
After the upload is completed, you will see the uploaded video and its corresponding ID (i.e., FileId
) in the video list in the Uploaded column.
In the Uploaded column in Media Assets, select the video just uploaded and click Video Processing. Select Manually select transcoding template for Processing Type, check MP4-LD-FLU (10) in Transcoding Template, keep Video Cover checked, and click OK.
At this point, you have uploaded a video again and initiated a transcoding task for it. These operations have triggered event notifications.
Was this page helpful?