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.

Media Overlay behavior in Google Chrome and Android WebView #681

Open
@tddpirate

Description

@tddpirate

This issue is a Bug

Related issue(s) and/or pull request(s)

None.

Expected Behaviour

Automatic page flipping when the highlights reach the visible pages' end.

Observed behaviour

Media player stops playing at the pages' end.
When two pages are displayed, and when Media player reaches the first page's end, it continues with the second page. However when the second page ends, Media player stops.

Steps to reproduce

  1. Check out readium-js-viewer and build it from the develop branch (I used commit d0769f0).
    Include the 'highlights' module using the following readium-js-viewer/readium-js/readium-shared-js/plugins/plugins-override.cson:
    plugins:
    include: [
    'highlights'
    ]
    exclude: [
    'example'
    ]

  2. Start HTTP server using 'ntp run http' from readium-js-viewer.

  3. Open a Fixed Layout EPUB with Media Overlay.

  4. Activate the Media player.

Test file(s)

Private EPUB. Will test again if I know about a public EPUB which is Fixed Layout and with Media Overlay. This EPUB uses audio format MP3.
The output of the 'file' command:
Audio file with ID3 version 2.3.0, contains: MPEG ADTS, layer III, v1, 192 kbps, 44.1 kHz, JntStereo

Product

Additional information

When running the Readium engine inside Android WebView (Version 63.0.3239.111), Media player starts working but usually gets stuck after highlighting the first phrase.
When the Media player gets stuck, I see the following messages in the instrument's Logcat:
E/chromium: [ERROR:render_media_log.cc(30)] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"FFmpegDemuxer: open context failed"}
E/chromium: [ERROR:render_media_log.cc(30)] MediaEvent: PIPELINE_ERROR DEMUXER_ERROR_COULD_NOT_OPEN

The instrument in question is a Nexus 5, running Android 6.0.1
The audio_player actually tested on the Android is a modified version, but I saw similar behavior when trying an unmodified version.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions