Overview
Aradia’s audio player is built on theaudio_service package and provides professional-grade playback controls optimized for long-form audiobook listening.
Player Features
Speed Control
Adjust playback speed from 0.5x to 2.0x
Skip Silence
Automatically skip silent portions of audio
Sleep Timer
Set timer to pause at specific intervals or end of track
Chromecast
Cast audio to Google Cast devices
Playback Speed Control
Adjust playback speed with precise control:Speed adjustments range from 0.5x (half speed) to 2.0x (double speed) with 6 preset divisions.
Skip Silence
Automatically skip silent portions of the audio for a smoother listening experience:Sleep Timer
Set a sleep timer to automatically pause playback:- Preset Durations
- Implementation
Available timer presets:
- 15 minutes
- 30 minutes
- 45 minutes
- 60 minutes
- 90 minutes
- End of current track
End of Track Timer
The “End of Track” timer dynamically adjusts based on the current playback position:Chromecast Support
Cast your audiobooks to any Google Cast-enabled device:Request Permissions
Location permission is required for WiFi device discovery on Android 10+
Permission Request (chromecast_button.dart:14-27)
Discover Devices
The app automatically scans for available Cast devices:
Device Discovery (chromecast_button.dart:85-101)
Playback Controls
Skip Backward
Jump back 10 seconds
Play/Pause
Toggle playback
Skip Forward
Jump ahead 10 seconds
Control Implementation
Volume Control
Precise volume adjustment with visual feedback:All player controls work seamlessly in the background and persist across app restarts!
Next Steps
Learn about downloading audiobooks for offline playback