Skip to content

Creates video_player integration example#982

Open
azamor-luccas wants to merge 1 commit intoryanheise:minorfrom
azamor-luccas:minor
Open

Creates video_player integration example#982
azamor-luccas wants to merge 1 commit intoryanheise:minorfrom
azamor-luccas:minor

Conversation

@azamor-luccas
Copy link
Copy Markdown

@azamor-luccas azamor-luccas commented Jan 7, 2023

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

  • I read the CONTRIBUTING.md and followed the process outlined there for submitting PRs.
  • My change is not breaking and lands in minor branch OR my change is breaking and lands in major branch.
  • 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.
  • I updated CHANGELOG.md to add a description of the change (format: * DESCRIPTION OF YOUR CHANGE (@your-git-username)).
  • I updated/added relevant documentation (doc comments with ///).
  • I ran dart analyze.
  • I ran dart format.
  • I ran flutter test and all tests are passing.

@azamor-luccas
Copy link
Copy Markdown
Author

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

@ryanheise
Copy link
Copy Markdown
Owner

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?

@azamor-luccas
Copy link
Copy Markdown
Author

I think it's this one flutter/plugins#5013

@alexboulay
Copy link
Copy Markdown

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants