flutter_ringtone_player_plus
1.0.0, released 7 weeks ago by togrulagayev.com
Play system ringtones, alarms, notifications and custom audio on Android and iOS.
What it does
Plays default device alarms, ringtones, notification sounds, local audio files, and Flutter assets. Features looping, perceptual volume scaling, playback state streams, and error handling.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to play alarms, ringtones, or notification sounds in your app.
- You are migrating away from the unmaintained flutter_ringtone_player package.
- You need to play custom audio files or assets with looping and volume controls on Android and iOS.
Skip it when
- You need complex audio streaming, mixing, or advanced audio processing.
- You are targeting macOS or web, which are not currently supported.
Strengths
- Supports looping, volume, and stop controls consistently on both Android and iOS.
- Provides playback state streams and typed exceptions.
- Drop-in migration path for flutter_ringtone_player users.
Weaknesses
- macOS and web support are not yet implemented.
- Limited to short sound effects, ringtones, alarms, and notifications rather than full-scale media player features.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
To keep a sound playing while your app is in the background on iOS, add audio to UIBackgroundModes in Info.plist.
import 'package:flutter_ringtone_player_plus/flutter_ringtone_player_plus.dart';
const player = RingtonePlayer();
await player.playAlarm();
await player.playNotification(volume: 0.5);
await player.stop();Alternatives
Packages that do the same job and could replace flutter_ringtone_player_plus.
- just_audio
If you need a feature-rich media player for complex audio playback, streaming, and advanced controls.
80Compare - audioplayers
If you need a general-purpose audio playback library for multiple simultaneous tracks or simple audio effects.
87Compare
Works with
Packages commonly used together with flutter_ringtone_player_plus: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfaceflutter_ringtone_player_plus depends on itReusable base class for platform interfaces of Flutter federated plugins.
- zego_uikit_prebuilt_callBuilt on flutter_ringtone_player_plusFull-featured prebuilt UI kit for one-on-one and group voice and video calls with offline invitations.