Skip to content
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
@msintov

Description

@msintov

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:

  1. Launch SDKLaunder-Android
  2. Open a book with a media overlay
  3. Play the media overlay
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions