futurepress / epubjs-reader

Epub.js Reader
MIT License
449 stars 131 forks source link

ePub will not play - my problem or yours? #39

Open Nainoia-Inc-Admin opened 4 years ago

Nainoia-Inc-Admin commented 4 years ago

I am hosting a set of ePub from eBible.org on my website and Futurepress reader will not play them. However, the same Futurepress reader installation will play my own ePubs, though noticeably slow. I need help determining if the problem is the ePubs from eBible.org OR if Futurepress is failing in some way.

Will not play: http://stage.aionianbible.org/?e=/xcdn/epub/Holy-Bible---English---World-English-Bible---Source-Edition

Here is the ePub file in use above: http://resources.aionianbible.org/Holy-Bible---English---World-English-Bible---Source-Edition.epub

Okay but this does play, but SLOW, with the same Futurepress installation: http://stage-epub.signedon.net/optimism-out-of-control

Here the same ePub plays faster on an older Futurepress installation: http://epub.signedon.net/optimism-out-of-control

Any help would be greatly appreciated!

fchasen commented 4 years ago

For the stage.aionianbible.org book the error I get is:

This page contains the following errors:
error on line 5 at column 52: attributes construct error

This refers to the viewport line which is missing a ' in the initial-scale attribute.

<meta name='viewport' content='width=device-width', initial-scale=1'>

The stage-epub.signedon.net reader seems to be trying to access a resource that is missing and hitting http://stage-epub.signedon.net/epub-not-found in a continuous loop which might explain the slowness.

Nainoia-Inc-Admin commented 4 years ago

Thank you very much! and a problem noted in the /reader/js folder

FIRST, you did locate an error in my epub and the people at http://eBible.org send you hearty and sincere thanks. The correction actually looks like this...

From this <meta name='viewport' content='width=device-width', initial-scale=1'>

To this <meta name='viewport' content='width=device-width, initial-scale=1' />

There was an extra single quote and missing close of the tag. Some epub players didn't choke with that, but Futurepress choked. Maybe there is no way to bullet proof that in Futurepress.

SECOND, you also noted that my player was in an infinite loop looking for a missing resource. The missing resource is /reader/js/epub.js.map. The Futurepress reader package has regular and minimized version of epub.js and reader.js and only a minimized version of hooks.min.js. Just so happens I was using the regular epub.js and not the minimized version and the map file is missing for epub.js, the epub.js.map file is not there. When I switch to the minimized epub.min.js the epub.min.map file is there.

Also why is epub.js looking for epub.js.map when your naming convention is epub.map. Also the reader.js map file is named reader.js.map instead of reader.map. That no doubt is a secondary issue, just noting that there are two different naming conventions for your map files. Hopefully not a problem elsewhere.

Finally, the Futurepress loading of this epub still seems a bit slow. Do you noticed any other problems? http://stage-epub.signedon.net/optimism-out-of-control.