ApsaraVideo Live supports audio-only and video-only streaming. You can ingest audio-only or video-only streams to ApsaraVideo Live and play them directly.
Stream ingest
You can ingest audio-only and video-only streams over the Real-Time Messaging Protocol (RTMP).
The required stream type depends on the live streaming method. The requirements are as follows:
For audio-only live streaming, you can use an audio-only stream or a stream that contains both audio and video.
For video-only live streaming, you can use a video-only stream or a stream that contains both audio and video.
Playback
You can play audio-only and video-only streams over RTMP, FLV, and Alibaba Real-Time Communication (ARTC) protocols.
You can append a parameter to the playback URL to play only the audio or video of a stream.
Playback URLs that start with RTMP or FLV
Play audio only: onlyaudio=1
Play video only: onlyvideo=1
NoteThese parameters are supported only for playback URLs that use the RTMP or FLV protocol.
Examples:
URL without authentication:
rtmp://DomainName/AppName/StreamName?onlyaudio=1http://DomainName/AppName/StreamName.flv?onlyaudio=1URL with authentication:
rtmp://DomainName/AppName/StreamName?auth_key=timestamp-rand-uid-md5hash&onlyaudio=1http://DomainName/AppName/StreamName.flv?auth_key=timestamp-rand-uid-md5hash&onlyaudio=1
Playback URLs that start with ARTC
Play audio only: subvideo=no
Play video only: subaudio=no
NoteThese parameters are supported only for playback URLs that use the ARTC protocol.
Examples:
URL without authentication:
artc://DomainName/AppName/StreamName@subvideo=noURL with authentication:
artc://DomainName/AppName/StreamName?auth_key=timestamp-rand-uid-md5hash@subvideo=no