All Products
Search
Document Center

:Audio- or video-only streaming

Last Updated:Aug 18, 2022

ApsaraVideo Live supports audio- or video-only streaming. You can ingest audio- or video-only streams to a live center of ApsaraVideo Live. You can also separately play the audio or video content of streams.

Stream ingest

Audio- or video-only streams can be ingested over the Real Time Message Protocol (RTMP).

Stream playback

You can append a parameter to a streaming URL to separately play the audio or video content of a stream.

  • Streaming URLs that start with rtmp or flv

    To separately play the audio content of a stream, append onlyaudio=1 to the streaming URL.

    To separately play the video content of a stream, append onlyvideo=1 to the streaming URL.

    Note

    To use these parameters, make sure that the streaming URL starts with rtmp or flv.

    Examples:

    • Sample streaming URLs that disable authentication:

      rtmp://DomainName/AppName/StreamName?onlyaudio=1
      http://DomainName/AppName/StreamName.flv?onlyaudio=1
    • Sample streaming URLs that enable authentication:

      rtmp://DomainName/AppName/StreamName?auth_key=timestamp-rand-uid-md5hash&onlyaudio=1
      http://DomainName/AppName/StreamName.flv?auth_key=timestamp-rand-uid-md5hash&onlyaudio=1
  • Streaming URLs that start with artc

    To separately play the audio content of a stream, append subvideo=no to the streaming URL.

    To separately play the video content of a stream, append subaudio=no to the streaming URL.

    Note

    To use these parameters, make sure that the streaming URL starts with artc.

    Examples:

    • Sample streaming URL that disables authentication:

      artc://DomainName/AppName/StreamName@subvideo=no
    • Sample streaming URL that enables authentication:

      artc://DomainName/AppName/StreamName?auth_key=timestamp-rand-uid-md5hash@subvideo=no