readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
551 stars 186 forks source link

Automatic page turn not work #574

Open tmoreno opened 7 years ago

tmoreno commented 7 years ago

This issue is a Bug

Expected Behaviour

When I'm listening an audiobook and automatic page turn is enabled, I want the pages are automatically passed from the beginning to the end of a chapter.

Observed behaviour

Automatic page turn not work after the second page turn.

Steps to reproduce

  1. Open an audiobook, e.g. Moby Dick.
  2. Enable automatic page turn.
  3. Go to the first chapter, Loomings.
  4. Play.
  5. Wait until the second page turn and check that the third page turn not work.

    Product

    • Readium cloud reader app
    • Browser: all
    • OS and version: all
danielweck commented 7 years ago

oh, that's a new bug! :( Is this actually a failing "page turn" inside a reflowable document (i.e. transition from one CSS column to the next), or a failure to switch to the next spine item (new HTML document). Moby Dick's "Loomings" is quite a long chapter, so I guess: the former.

tmoreno commented 7 years ago

Maybe occurs in reflowable documents only, I tried with a fixed layout book and I had no problem.

rkwright commented 7 years ago

That would suggest that it IS only within a single spine item. I confirmed that this is the case with Moby Dick and a build of Readium 0.25-alpha Chrome Extension on OSX 10.10. The audio continued and the highlight correctly moved to the next paragraph on the next page, but the page did not turn.

pettarin commented 7 years ago

I have experienced the same issue: reflowable EPUB 3 with Media Overlays, passing EpubCheck 4 just fine, SMIL valid (no empty elements, no elements with zero duration, etc.). One column setting, with fairly small column width (e.g. 550px): the audio keeps going, probably the highlight too, but the "page" stays the same.

The problematic thing is that this issue seems to depend on the reader viewing preferences: same EPUB, different viewing settings, and the issue is not triggered.

danielweck commented 7 years ago

Ah, that's annoying. I was testing reflowable page turn with Media Overlays recently, and I did not observe this bug. Thanks Alberto.