This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.
If media overlay is playing, audio doesn't stop when app is backgrounded or device is turned off #65
Open
Description
There is a bug where media overlay audio doesn't stop playing when the app is backgrounded or the device is turned off.
Repro steps:
- Launch SDKLaunder-Android
- Open a book with a media overlay
- Play the media overlay
- Background the app or touch the power button to turn off the display
Actual results: audio continues playing
Expected results: audio stops
One potential fix is to call ReadiumSDK.reader.toggleMediaOverlay() if the media overlay is playing in WebViewActivity.onPause(). Seems to work.