All Products
Search
Document Center

ApsaraVideo Live:Live stream playback

Last Updated:Jul 17, 2024

You can use VLC media player, the Push SDK demo, or ApsaraVideo Player SDK to play a stream. This topic describes how to use these different methods to play a stream.

Prerequisites

Note

If you encounter issues such as playback exceptions during streaming, you can use the troubleshooting tool to troubleshoot the issues. The tool allows you to diagnose common stream playback issues and provides suggestions for you to resolve specific exceptions. For more information, see Troubleshooting.

Use VLC media player to play a stream

VLC media player supports Windows, macOS, Linux, Android, and iOS. In the following example, VLC for Windows V3.0.16 is used. The operations that you perform to play a stream are similar for VLC of other versions or on other platforms. For more information about how to use VLC media player, visit VLC media player.

  1. Download and install VLC media player. Download link: VLC media player.

  2. Run VLC media player.

  3. In the menu bar, choose Media > Open Network Stream....

  4. On the Network tab, enter a network URL, which is a streaming URL. Example: rtmp://example.aliyundoc.com/app/stream?auth_key=1543300311-0-0-d47ce016332bf280cf275********.

  5. Click Play.

Use the Push SDK demo to play a stream

  1. Use a mobile device to scan the QR code to download the Push SDK demo.

    image.png

    Note

    If you use an iOS device and receive a message indicating that the demo is from an untrusted enterprise developer, tap Settings > General > Device Management. On the page that appears, find the permissions required by Taobao and tap Trust.

  2. Run the Push SDK demo.

  3. Select Live Streaming.

  4. Enter the generated streaming URL. Example: rtmp://example.aliyundoc.com/app/stream?auth_key=1543300311-0-0-d47ce016332bf280cf275********.

  5. Click Pull Stream to start streaming.

Use player SDKs to play a stream

ApsaraVideo Player SDK is a cross-platform audio and video playback tool developed by Alibaba Cloud. The SDK is a sub-module of ApsaraVideo MediaBox SDK. The SDK allows you to play videos in live streaming scenarios and supports multiple platforms, such as the web, Android, iOS, Flutter, Windows, and macOS. The SDK provides features such as loop playback, definition switching, image ads, video ads, bullet comments, and subtitles. To try the SDK on the web, visit Feature Display.

Playback procedure

ApsaraVideo Player SDK for Android

  1. Integrate ApsaraVideo Player SDK for Android. For more information, see Quick integration.

  2. Develop the player based on your business requirements and play a live stream. For more information, see Basic features.

    For information about the advanced features of ApsaraVideo Player SDK for Android, see Advanced features. For information about the relevant API operations, see API operations for ApsaraVideo Player SDK for Android.

ApsaraVideo Player SDK for iOS

  1. Integrate ApsaraVideo Player SDK for iOS. For more information, see Quick integration.

  2. Develop the player based on your business requirements and play a live stream. For more information, see Basic features.

    For information about the advanced features of ApsaraVideo Player SDK for iOS, see Advanced features. For information about the relevant API operations, see API operations for ApsaraVideo Player SDK for iOS.

ApsaraVideo Player SDK for Windows

  1. Integrate ApsaraVideo Player SDK for Windows. For more information, see Quick integration.

  2. Develop the player based on your business requirements and play a live stream. For more information, see Advanced features.

    For information about the relevant API operations, see API operations.

ApsaraVideo Player SDK for Flutter

  1. Integrate ApsaraVideo Player SDK for Flutter. For more information, see Quick integration.

  2. Develop the player based on your business requirements and play a live stream. For more information, see Common features.

ApsaraVideo Player SDK for Web

  1. Integrate ApsaraVideo Player SDK for Web. For more information, see Quick integration.

  2. Develop the player based on your business requirements and play a live stream. For more information, see Basic features.

    For information about the advanced features of ApsaraVideo Player SDK for Web, see Advanced features. For information about the relevant API operations, see API operations.

References

Why am I unable to play a video in ApsaraVideo Live after the ingest URL is generated?