Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video and Audio Stop Playing When App Goes to Background #1048

Open
1 task done
jdarkhorse7 opened this issue Jan 18, 2025 · 0 comments
Open
1 task done

Video and Audio Stop Playing When App Goes to Background #1048

jdarkhorse7 opened this issue Jan 18, 2025 · 0 comments
Assignees

Comments

@jdarkhorse7
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package

youtube_player_flutter

What happened?

When the app goes into the background, the video and audio playback stops for a brief moment (or entirely), which is not the desired behavior. This issue occurs when the app is moved to the background state, causing interruptions in video or audio playback.

What is the expected behaviour?

  • The video/audio should continue playing seamlessly even when the app enters the background state, without interruptions.

  • The player should handle background playback automatically, similar to how audio players behave in the background.

How to reproduce?

Steps to Reproduce:

  • Play a YouTube video using the youtube_player_flutter package.
  • Press the home button or switch to another app, putting the app into the background.
  • Observe that the video/audio stops completely.

Flutter Doctor Output

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4751], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.4)
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.96.4)
[√] Connected device (3 available)
[√] Network resources

• No issues found!
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

No branches or pull requests

2 participants