audio_service icon indicating copy to clipboard operation
audio_service copied to clipboard

Creates video_player integration example

Open azamor-luccas opened this issue 2 years ago • 4 comments

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 in major 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.

azamor-luccas avatar Jan 07 '23 16:01 azamor-luccas

as the video_player now has the allowBackgroundPlayback option, I created a simple example with an integration

azamor-luccas avatar Jan 07 '23 16:01 azamor-luccas

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?

ryanheise avatar Jan 08 '23 01:01 ryanheise

I think it's this one https://github.com/flutter/plugins/pull/5013

azamor-luccas avatar Jan 15 '23 11:01 azamor-luccas

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?

alexboulay avatar Aug 01 '24 12:08 alexboulay