chewie_audio
1.5.0, released 4 years ago by sub6resources.com
An audio player for Flutter with Cupertino and Material play controls.
What it does
Chewie Audio wraps the video_player plugin under the hood and provides friendly Material or Cupertino UI controls for audio playback. It supports features like subtitles, playback speed control, custom progress bars, and looping.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an audio player with pre-built Material and Cupertino play controls.
- You want to quickly implement audio playback with subtitle support and customizable options.
Skip it when
- You require a complex multi-track audio engine or advanced background audio session management without video_player dependencies.
- You only need low-level audio/video playback primitives without pre-styled widgets.
Strengths
- Comes with ready-to-use Material and Cupertino controls.
- Supports subtitles and custom builders.
- Allows customization of playback speed and additional options.
Weaknesses
- Relies on video_player under the hood, making it an audio player built on video infrastructure.
- Limited built-in streaming/casting features (like Chromecast) as noted in the roadmap.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires adding both chewie_audio and video_player as dependencies in your pubspec.yaml. iOS simulators require Flutter 1.26.0+ due to video_player constraints.
import 'package:chewie_audio/chewie_audio.dart';
final videoPlayerController = VideoPlayerController.network(
'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4');
await videoPlayerController.initialize();
final chewieAudioController = ChewieAudioController(
videoPlayerController: videoPlayerController,
autoPlay: true,
looping: true,
);
final playerWidget = ChewieAudio(
controller: chewieAudioController,
);Alternatives
Packages that do the same job and could replace chewie_audio.
- just_audio
Pick it for a feature-rich, dedicated audio player designed specifically for complex audio use cases, streaming, and playlists.
80Compare - audioplayers
Pick it for a simpler, dedicated multi-platform audio playback library that doesn't rely on video player underpinnings.
87Compare
Works with
Packages commonly used together with chewie_audio: ones it builds on, ones built on it, and its own family.
- cupertino_iconschewie_audio depends on itAsset package providing Cupertino icon font for Flutter
- video_playerchewie_audio depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- enough_mediaBuilt on chewie_audioExtensible collection of media viewers for preview and interactive experiences.