Help Center Help Center

HLS Online Video Player Based on Tencent Cloud Playback SDK Development

Introduction

With the rapid development of Internet video streaming technology, HLS (HTTP Live Streaming), as an HTTP-based streaming protocol, has been widely used. Tencent Cloudcast, as a video playback and management service provided by Tencent Cloud, supports HLS video playback with high availability and stability. In this article, we will introduce how to play HLS video based on Tencent Cloudcast, and explain each step in detail from building the cloud service to achieving video playback.

What is HLS?

HLS (HTTP Live Streaming) is a streaming media network transmission protocol proposed by Apple Inc. HLS uses the HTTP protocol to split audio and video content into small segments for easy playback under different network conditions. Its main features include:

Introduction to Tencent Cloud Broadcasting Platform

Tencent Video Cloud is a video cloud service launched by Tencent Cloud, providing video uploading, transcoding, storage, distribution, and playback functions. It supports a variety of video formats and protocols, including HLS, HTTP, RTMP, and more.

Main Features:

Building Cloud Services

1. Register for a Tencent Cloud Account

First, visit the Tencent Cloud website and register for a Tencent Cloud account. After registering, log in and enter the console.

2. Creating a Cloud Broadcast Service

In the Tencent Cloud console, find the Cloud VOD service. Click the "Create Service" button, choose the related configurations, and follow the instructions to complete the service creation.

Testing and Validation

After completing the above steps, open your HTML file. The HLS video should load and play successfully in your browser. If the video does not play, check the following: