diff --git a/src/calibre/ebooks/oeb/display/cfi.coffee b/src/calibre/ebooks/oeb/display/cfi.coffee index 0ccb209cc4..75509be9b8 100644 --- a/src/calibre/ebooks/oeb/display/cfi.coffee +++ b/src/calibre/ebooks/oeb/display/cfi.coffee @@ -191,9 +191,9 @@ class CanonicalFragmentIdentifier if target.currentTime == undefined return if target.readyState == 4 or target.readyState == "complete" - target.currentTime = val + target.currentTime = val + 0 else - fn = -> target.currentTime = val + fn = ()-> target.currentTime = val target.addEventListener("canplay", fn, false) #}}} diff --git a/src/calibre/ebooks/oeb/display/test-cfi/birds.mp4 b/src/calibre/ebooks/oeb/display/test-cfi/birds.mp4 new file mode 100644 index 0000000000..54869c714a Binary files /dev/null and b/src/calibre/ebooks/oeb/display/test-cfi/birds.mp4 differ diff --git a/src/calibre/ebooks/oeb/display/test-cfi/index.html b/src/calibre/ebooks/oeb/display/test-cfi/index.html index e46cf3aa97..962b14e628 100644 --- a/src/calibre/ebooks/oeb/display/test-cfi/index.html +++ b/src/calibre/ebooks/oeb/display/test-cfi/index.html @@ -114,6 +114,15 @@

Try clicking at different points along the image. Also try changing the magnification and then hitting reload.

Test Image +

Video

+

Try clicking on this video while it is playing. The page should + reload with the video paused at the point it was at when you + clicked. To play the video you should right click on it and select + play (otherwise the click will cause a reload). This is currently + broken because of issues in the python server use to serve test + content. I lack the patience to track down the bug.

+