This document describes how to upload a video to VOD, process it, and play it back in the player.
Before you start, do the following:
Follow the steps below to activate VOD:
At this point, you have activated VOD.
You need to make sure that hotlink protection for your default distribution domain name is not enabled:
This step describes how to upload a video, transcode it to adaptive bitstream, and generate a thumbnail and image sprite.
Note:LongVideoPreset is a preset task flow, which uses template 10 for adaptive bitrate streaming, thumbnail generation, and image sprite capturing.
3. Click Upload to enter the Uploading page and wait for the upload to complete.
4. Select Media Assets > Video Management and find the newly uploaded video (FileId: 528xxx3757278095). Here, the ID is the FileId
of the uploaded video.
Note:Wait until the Video Status changes from Processing to Normal, which indicates that video processing is completed.
In the previous step, you have uploaded and processed the video. Now, you can use the player for web, iOS, and Android to quickly preview video playback.
Select Media Assets > Video Management, find the video uploaded and processed in step 1, click Manage in the Operation column, and select Player Preview.
Select default for Player Configuration.
Note:Default is a preset player configuration, which is used to output the adaptive bitstream with template 10 and the image sprite with template 10.
In Web Player, click the button in the middle of the player to play back the video on web.
In Mobile Player, click Scan code to download and install "Tencent Cloud Toolkit".
Open Tencent Cloud Toolkit on your mobile phone, select Player, click the top-right corner to scan the QR code, and you can play back the video on your phone.
You can use the player demos for web, Android, and iOS for verification. For more information, see the demo source code.
Note:In Media Assets > Video Management > Player Preview in the console, you can get the corresponding web player source code for video preview for your reference.
At this point, you have understood how to upload a video to VOD, process it, and play it back in the player.
You can also:
Was this page helpful?