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
Stream ingest is complete. For more information, see Live stream ingest.
A streaming URL is generated. For more information, see Generate ingest and streaming URLs.
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.
Download and install VLC media player. Download link: VLC media player.
Run VLC media player.
In the menu bar, choose .
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********
.Click Play.
Use the Push SDK demo to play a stream
Use a mobile device to scan the QR code to download the Push SDK demo.
NoteIf you use an iOS device and receive a message indicating that the demo is from an untrusted enterprise developer, tap
. On the page that appears, find the permissions required by Taobao and tap Trust.Run the Push SDK demo.
Select Live Streaming.
Enter the generated streaming URL. Example:
rtmp://example.aliyundoc.com/app/stream?auth_key=1543300311-0-0-d47ce016332bf280cf275********
.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 |
|
ApsaraVideo Player SDK for iOS |
|
ApsaraVideo Player SDK for Windows |
|
ApsaraVideo Player SDK for Flutter |
|
ApsaraVideo Player SDK for Web |
|
References
Why am I unable to play a video in ApsaraVideo Live after the ingest URL is generated?