mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add video test to EPUB CFI
This commit is contained in:
parent
a271f7af35
commit
05d555d4ed
@ -191,9 +191,9 @@ class CanonicalFragmentIdentifier
|
|||||||
if target.currentTime == undefined
|
if target.currentTime == undefined
|
||||||
return
|
return
|
||||||
if target.readyState == 4 or target.readyState == "complete"
|
if target.readyState == 4 or target.readyState == "complete"
|
||||||
target.currentTime = val
|
target.currentTime = val + 0
|
||||||
else
|
else
|
||||||
fn = -> target.currentTime = val
|
fn = ()-> target.currentTime = val
|
||||||
target.addEventListener("canplay", fn, false)
|
target.addEventListener("canplay", fn, false)
|
||||||
#}}}
|
#}}}
|
||||||
|
|
||||||
|
BIN
src/calibre/ebooks/oeb/display/test-cfi/birds.mp4
Normal file
BIN
src/calibre/ebooks/oeb/display/test-cfi/birds.mp4
Normal file
Binary file not shown.
@ -114,6 +114,15 @@
|
|||||||
<p>Try clicking at different points along the image. Also try changing the magnification and then hitting reload.</p>
|
<p>Try clicking at different points along the image. Also try changing the magnification and then hitting reload.</p>
|
||||||
<img src="marker.png" width="150" height="200" alt="Test Image" style="border: solid 1px black"/>
|
<img src="marker.png" width="150" height="200" alt="Test Image" style="border: solid 1px black"/>
|
||||||
|
|
||||||
|
<h2>Video</h2>
|
||||||
|
<p>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. </p>
|
||||||
|
<video width="320" height="240" controls="controls" preload="auto" src="birds.mp4" type="video/mp4" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<img id="marker" style="position: absolute; display:none; z-index:10" src="marker.png" alt="Marker" />
|
<img id="marker" style="position: absolute; display:none; z-index:10" src="marker.png" alt="Marker" />
|
||||||
</body>
|
</body>
|
||||||
|
@ -164,6 +164,7 @@ class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler): # {{{
|
|||||||
|
|
||||||
class HTTPD(SocketServer.TCPServer):
|
class HTTPD(SocketServer.TCPServer):
|
||||||
allow_reuse_address = True
|
allow_reuse_address = True
|
||||||
|
protocol_version = 'HTTP/1.1'
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user