apache / apache/cordova-plugin-media
Playback stops after a while if app is on background or device is locked
Open
- Dominant language
- JavaScript
- Stars
- 391
- Forks
- 762
- PR merge metrics
- No merged PRs in 30d
Description
On Oreo (Android 8.0+), playback stops after a while whenever app goes into background mode or device is locked, it's impossible to restore it by reloading app or unlocking device.
I´ve read that this can be fixed by implementing a Foreground Service, how could it be done?, any guidance will be great.
Contributor guide
Research direction
No file, test, or entry point is named. Start by reviewing the Android implementation of the Cordova Media plugin and the foreground-service guidance for Android 8.0+; done means playback continues when the app is backgrounded or the device is locked and can be restored afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100