All Products
Search
Document Center

ApsaraVideo Live:ApsaraVideo Player SDK for Web

Last Updated:Dec 23, 2025

ApsaraVideo Player SDK for Web can be integrated into your web application to support video playback for both live streaming and video on-demand (VOD) scenarios. This topic introduces how to use ApsaraVideo Player SDK for Web.

Important

For more information about the features of the web player, see Player SDK for Web.

Demo

Follow the steps in Get started with ApsaraVideo Live to start live streaming. After a live stream is ingested, enter the streaming URL to watch the live stream in the web player.

Note
  • To use a streaming URL in the web demo, HTTPS must be enabled. For instructions on applying for and configuring a certificate, see HTTP/S settings.

  • The web demo does not support playback of live streams using the RTMP protocol. Use playback URLs in FLV or M3U8 format.

  • When playing videos using FLV or M3U8 URLs, your browser may report a cross-origin error. To resolve this, Configure HTTP headers for your streaming domain. Examples:

    • Access-Control-Allow-Origin: *

    • Access-Control-Allow-Methods: GET,POST,PUT,Delete,Option

Procedure

  1. Follow the steps in Get started with ApsaraVideo Live to start live streaming and get the streaming URL.

  2. Go to the web demo page and select Online Settings from the top menu bar.

  3. On the Basic tab, set Video Type to Broadcast, and enter the URL.image

  4. Click the Preview tab to check if the live stream plays normally.

    image