diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-21 08:25:16 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-21 08:25:16 +0300 |
| commit | 09f0ee28b6a7b7fc588a8a4e387d94ffb6848af3 (patch) | |
| tree | 4850136006f64f1938dc2a9fae2bde7a28c4f8b7 /player-android/pubspec.yaml | |
| parent | 63fc4369917ab548c5cdc4dddccf0ad4ded11a2f (diff) | |
Add video/audio player packages, routes, and placeholder screens (task xa)
- pubspec.yaml: add video_player ^2.9.2, chewie ^1.8.5, just_audio ^0.9.42,
audio_service ^0.18.15 with descriptive comments explaining each package's role.
- AndroidManifest.xml: add FOREGROUND_SERVICE, FOREGROUND_SERVICE_MEDIA_PLAYBACK,
and WAKE_LOCK permissions; declare AudioService with foregroundServiceType=
mediaPlayback and MediaButtonReceiver for hardware media button support.
INTERNET was already present — not duplicated.
- app_routes.dart: add videoPlayer (/video/:mediaId) and audioPlayer
(/audio/:mediaId) route constants plus videoPlayerPath/audioPlayerPath helpers.
- router.dart: wire GoRoutes for the two new paths, forwarding mediaId from
path params and optional mediaUrl from route extra.
- screens/video_player_screen.dart: placeholder VideoPlayerScreen accepting
mediaId + mediaUrl, importing chewie and video_player for resolution check.
- screens/audio_player_screen.dart: placeholder AudioPlayerScreen accepting
mediaId + mediaUrl, importing just_audio and audio_service for resolution check.
flutter pub get and flutter analyze both pass clean.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'player-android/pubspec.yaml')
| -rw-r--r-- | player-android/pubspec.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/player-android/pubspec.yaml b/player-android/pubspec.yaml index d66852c..2fcc290 100644 --- a/player-android/pubspec.yaml +++ b/player-android/pubspec.yaml @@ -23,6 +23,18 @@ dependencies: # cached_network_image: downloads and caches remote images (e.g. set covers) # so repeated visits do not re-fetch from the server. cached_network_image: ^3.4.1 + # video_player: low-level Flutter plugin for video playback via platform codecs. + video_player: ^2.9.2 + # chewie: opinionated UI controls (play/pause, seek bar, fullscreen) built on + # top of video_player, so the app gets a polished player without hand-rolling + # all the controls. + chewie: ^1.8.5 + # just_audio: cross-platform audio playback with gapless playlists, stream + # support, and fine-grained playback controls. + just_audio: ^0.9.42 + # audio_service: runs audio in the background as a foreground service, + # integrates with Android media notifications and lock-screen controls. + audio_service: ^0.18.15 dev_dependencies: flutter_test: |
