Fix WebView YouTube Background Playback
Budget: ₹1,500 – ₹12,500 INR
When my Android app is minimized, any YouTube video inside the WebView pauses immediately. I need a clean, reliable way to keep playback running in the background the same way the regular
Here’s the current state of things:
• I’m loading the video inside an Android WebView.
• I have already experimented with various WebView settings—JavaScript, media playback flags, setMediaPlaybackRequiresUserGesture =false, etc.—but nothing has stopped the pause on “home” or “recent-apps” actions.
• No alternative implementations (custom players, exo-player wrappers, or different WebView engines) are in place,
What I need from you:
1. A working code solution (Java or Kotlin) that lets the video continue playing when the user switches apps or locks the screen.
2. Any required permissions, service code, or MediaSession / audio-focus handling clearly documented so I can integrate it quickly.
3. A short explanation of why this approach works and any limitations on specific Android versions.
Please test on at least one recent device (Android 10 or later) before handing it over so I can drop the patch straight into my project.
Payout: Max 5K INR or as per solution
Here’s the current state of things:
• I’m loading the video inside an Android WebView.
• I have already experimented with various WebView settings—JavaScript, media playback flags, setMediaPlaybackRequiresUserGesture =false, etc.—but nothing has stopped the pause on “home” or “recent-apps” actions.
• No alternative implementations (custom players, exo-player wrappers, or different WebView engines) are in place,
What I need from you:
1. A working code solution (Java or Kotlin) that lets the video continue playing when the user switches apps or locks the screen.
2. Any required permissions, service code, or MediaSession / audio-focus handling clearly documented so I can integrate it quickly.
3. A short explanation of why this approach works and any limitations on specific Android versions.
Please test on at least one recent device (Android 10 or later) before handing it over so I can drop the patch straight into my project.
Payout: Max 5K INR or as per solution