Skip to content
pubscout

flutter_radio_player

4.2.0, released 8 days ago by an unverified publisher

A Flutter plugin for streaming radio with background playback and lock‑screen controls.

WASM-ready
$ flutter pub add flutter_radio_player
Source repository

What it does

Plays online radio streams on Android and iOS, supporting background audio, media controls, and metadata extraction. Provides a queue of sources with navigation and volume control.

AI-written summary of version 4.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need continuous radio streaming with background playback
  • You want lock‑screen and notification media controls without writing platform code

Skip it when

  • You only need simple one‑off audio playback
  • You require advanced audio processing like equalization

Strengths

  • Background playback works out‑of‑the‑box
  • Supports lock‑screen, notification, CarPlay, Android Auto, and watchOS
  • Typed source model and stream‑based state updates

Weaknesses

  • Limited to streaming radio URLs (no local files)
  • No built‑in support for playlists beyond simple queue
  • Relies on platform permissions and manifest changes

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

Add INTERNET, FOREGROUND_SERVICE, and FOREGROUND_SERVICE_MEDIA_PLAYBACK permissions to AndroidManifest.xml; enable Audio/Background Modes in iOS Signing & Capabilities and optionally allow arbitrary HTTP loads in Info.plist.

import 'package:flutter_radio_player/flutter_radio_player.dart';

final player = FlutterRadioPlayer();
await player.initialize([
  const RadioSource(url: 'https://example.com/stream.m3u8'),
], playWhenReady: true);
await player.play();

Alternatives

Packages that do the same job and could replace flutter_radio_player.

  • audioplayers

    Provides a broader set of audio features including local files, playlists, and more mature API, but requires manual background setup.

  • just_audio

    Offers extensive audio capabilities, gapless playback, and advanced audio processing; suitable if you need more than simple radio streaming.