audio_service
audio_service copied to clipboard
Creates video_player integration example
Replace this paragraph with a description of what this PR is changing or adding, and why.
If there's an open issue your PR is fixing, please list it here.
Pre-launch Checklist
- [x] I read the CONTRIBUTING.md and followed the process outlined there for submitting PRs.
- [x] My change is not breaking and lands in
minor
branch OR my change is breaking and lands inmajor
branch. - [x] If I'm the first to contribute to the next version, I incremented the version number in
pubspec.yaml
according to the pub versioning philosophy. - [x] I updated CHANGELOG.md to add a description of the change (format:
* DESCRIPTION OF YOUR CHANGE (@your-git-username)
). - [x] I updated/added relevant documentation (doc comments with
///
). - [x] I ran
dart analyze
. - [x] I ran
dart format
. - [x] I ran
flutter test
and all tests are passing.
as the video_player now has the allowBackgroundPlayback option, I created a simple example with an integration
Nice, it's been a while since I had anything to do with background video, I vaguely remember creating a prototype years ago. Do you have a link to the video_player issue and/or commit/PR that adds this?
I think it's this one https://github.com/flutter/plugins/pull/5013
Hi! I tried this example, background playback seems to work fine however whenever the app gets to a background state, the playback gets paused automatically and the user must hit play again (through the native media controls). Any idea why?