tencent cloud

All product documents
Video on Demand
Stage 1. Play back a source video
Last updated: 2023-06-19 16:19:01
Stage 1. Play back a source video
Last updated: 2023-06-19 16:19:01

Overview

This document describes how to upload a video to VOD and play it using VOD's player.

Prerequisites

Before you start, do the following:

Activating VOD

Follow the steps below to activate VOD:
1. Sign up for a Tencent Cloud account.
2. Purchase VOD services. For details, see Billing Overview.
3. Go to the VOD console.
At this point, you have activated VOD.

Step 1. Upload a Video

This step shows you how to upload a video.
1. In the VOD console, select Application Management on the left sidebar and select the target application. On the Media Assets > Video/Audio Management page, click Upload.

2. On the upload page, select Local Upload, and click Select File to upload a local video. Set the other fields as follows:
Select No processing after upload for Media processing.

3. Click Upload. You will be taken to the Uploading page. When Status changes to Uploaded successfully, the upload is completed, and you can view the file ID of the file (for example, 387xxxxx8142975036).


Step 2. Generate a Player Signature

In this step, you use the signature tool to quickly generate a player signature to play the video.
1. Select Distribution and Playback > Player Signature Tools on the left sidebar and complete the following settings:
Video file ID: Enter the file ID generated in Step 1 (387xxxxx8142975036).
Signature expiration time: Enter the player signature expiration time. If you leave it empty, the signature will never expire.
Playable video type: Select Original.
2. Click Generate to get the signature string.


Step 3. Play the Video

After step 2, you have obtained the three parameters needed for video playback: appId, fileId and psign (player signature). The following describes how to play the video on the web.

Playback on the web

1. Open the web player demo.
Select Video playback.
Click the File ID tab.
fileID: Enter the same file ID (387xxxxx8142975036) in the previous step.
appID: Enter the ID of the VOD application to which the file belongs (which is also the App ID displayed on the signature generation page in the previous step).
psign: Enter the signature string generated in the previous step.
2. Click Preview to play the video.


Multi-platform player demos

After generating the player signature, you can use our player demos for web, Android, and iOS to play the video. For details, see the source code for the demos.

Summary

At this point, you have understood how to upload a video to VOD and play it back in the player.
See also:
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon