talira

just_audio

Audio player plugin for Flutter with gapless playlists, clips and caching

open sourceMITfree

just_audio is an audio player for Flutter apps on Android, iOS, macOS and the web, with Windows and Linux through a separate implementation package such as just_audio_media_kit. It plays files, assets, URLs and streams, with gapless playlists, clipping, looping, speed and volume control, custom request headers and a download cache. It only plays audio: background playback, lock-screen controls and audio session handling come from companion plugins (just_audio_background, audio_service, audio_session). Install it from pub.dev as just_audio.

Problems it solves

  • play a playlist of tracks without gaps in my Flutter app
  • stream and cache audio from a URL in a Flutter podcast app
  • loop or clip a sound file in a Flutter game or meditation app

Features

  • gapless playlists with shuffle and loop modes
  • clips, seeking, speed and volume control
  • plays assets, files, URLs and custom stream sources
  • HTTP headers and a download cache through a local proxy
  • Android, iOS, macOS and web; Windows and Linux through just_audio_media_kit or just_audio_windows

Limitations

  • Windows and Linux need an extra implementation package (just_audio_media_kit or just_audio_windows).1
  • Headers, caching and stream sources use a local HTTP proxy, which needs non-HTTPS loads allowed on Android, iOS and macOS.1

Alternatives

The same job

These do what just_audio does.

  1. audioplayers Flutter plugin to play several audio files at once on mobile, desktop and web

Compare just_audio with the top 3