tencent cloud

Video on Demand

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Product Features
Features
Strengths
Scenarios
Solutions
Professional Edition
Introduction to Video On Demand Professional Edition
Quick Start
Console Guide
Development Guide
Purchase Guide
Billing Overview
Billing Modes
Purchase Guide
Viewing Bills
Renewal
Overdue Policy
Refund Policy
Getting Started
Console Guide
Console Overview
Service Overview
Application Management
Media Management
Package Management
License Management
Real-Time Log Analysis
Practical Tutorial
Media Upload
Smart Cold Storage of VOD Media Asset Files
Video Processing
Distribution and Playback
How to Receive Event Notification
How to Migrate Files from Origin Server to VOD
Live Recording
How to Pull from Custom Origin Servers
How to Use EdgeOne to Distribute Content in VOD
Development Guide
Media Upload
Media Processing
Video AI
Event Notification
Video Playback
Media Encryption and Copyright Protection
Broadcast Channel
CAM
Media File Download
Subapplication System
Error Codes
Player SDK
Overview
Basic Concepts
Features
Free Demo
Free Trial License
Purchase Guide
SDK Download
Licenses
Player Guide
Integration (UI Included)
Integration (No UI)
Advanced Features
API Documentation
Player Adapter
Player SDK Policy
Server APIs
History
Introduction
API Category
Other APIs
Media Processing APIs
Parameter Template APIs
Task Management APIs
Media Upload APIs
Media Management APIs
Event Notification Relevant API
Media Categorization APIs
Domain Name Management APIs
Distribution APIs
AI-based Sample Management APIs
Region Management APIs
Data Statistics APIs
Carousel-Related APIs
Just In Time Transcode APIs
No longer recommended APIs
Making API Requests
AI-based image processing APIs
Task Flow APIs
Data Types
Error Codes
Video on Demand API 2024-07-18
FAQs
Mobile Playback
Fees
Video Upload
Video Publishing
Video Playback
Web Playback
Full Screen Playback
Statistics
Access Management
Cold Storage
Agreements
Service Level Agreement
VOD Policy
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Stage 1. Play back a source video

PDF
Focus Mode
Font Size
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:

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback