Mux logo - video home
Docs
  • Introduction to Video
  • Stream video files
  • Start live streaming
  • Build real-time video experiences
  • Make API requests
  • Play your videos
  • Enable static MP4 renditions
  • Download for offline editing
  • Embed videos for social media
  • Listen for webhooks
  • Secure video playback
  • Create clips from your videos
  • Get images from a video
  • Create timeline hover previews
  • Adjust audio levels
  • Add watermarks to your videos
  • Add subtitles to your videos
  • Minimize processing time
  • Upload files directly
  • Autoplay your videos
  • Stream an audio-only version of your video
  • Synchronize video playback
  • Integrate with your CMS
Mux.comLog in
Mux logo - video home
Docs
GuidesAPI ReferenceChangelog

Stream an audio-only version of your video

This guide will show how to access an audio-only rendition for your Mux videos.

In this guide:

1

Add add_audio_only parameter

1

Add add_audio_only parameter

Add an extra parameter to your playback URL to get an audio-only HLS rendition

2

Integrate with your player

2

Integrate with your player

3

Using signed URLs

3

Using signed URLs

Learn how to add extra query params when using a signed playback policy

1Add add_audio_only parameter

By default, stream.mux.com/{PLAYBACK_ID}.m3u8 URLs will include multiple HLS renditions containing video + audio. If you add the add_audio_only=true parameter then an extra rendition containing only audio will be added.

Notice at the extra rendition in this manifest specifies a lower bitrate and indicates only an audio CODEC.

https://stream.mux.com/{PLAYBACK_ID}.m3u8?add_audio_only=true 
HLS add audio only parameter

2Integrate with your player

On the playback-side, your player can make use of this audio-only HLS rendition. On particularly low bandwidth connections your player might automatically downgrade to audio-only (which is better than endless buffering).

If you present your videos in an audio-only experience, using the audio-only rendition in your audio player will be preferable than using a rendition that contains video. You will save your users the overhead of unnecessary bandwidth and decoding video that no one is watching.

3Using signed URLs

Mux videos have two types of playback policy, public or signed. If your playback_id is signed, then all query parameters, including add_audio_only need to be added to the claims body.

Take a look at the signed URLs guide for details.

Was this page helpful?