Coder Social home page Coder Social logo

Comments (2)

danielweck avatar danielweck commented on July 17, 2024

To reproduce (tested with Chrome and Safari OSX):

(1) Download this EPUB from the official Google Code samples:
https://code.google.com/p/epub-samples/downloads/detail?name=cc-shared-culture-20120130.epub

(2) open p60.xhtml and copy/paste the following HTML fragment into the content, lower down in the markup (just so that the video gets displayed in a CSS column / page other than the first visible spread):

<epub:trigger ev:observer="pause" ev:event="click" action="pause" ref="video1"/>
<epub:trigger ev:observer="resume" ev:event="click" action="resume" ref="video1"/>
<video id="video1" autoplayxx="autoplay" controls="controls">
<source src="../video/shared-culture.mp4" type="video/mp4"/>
<source src="../video/shared-culture.webm" type="video/webm"/>
</video>
<p>
<button class="button" id="resume">play</button>
<button class="button" id="pause">pause</button>
</p>

Note that the epub:triggers are here to enable mouse/keyboard interaction with the video controls...that's because of another WebKit bug with CSS Columns :(
See this separate issue:
#54

(3) start the video, then move to the previous/next page. Notice how the video continues playing "in the background".

(4) Same issue with the scroll view? When the video goes out of sight, should it pause automatically? Should it pause automatically only when the visible iframe is different that the video's own iframe? (remember, the scroll view stacks multiple iframes vertically)

from readium-shared-js.

danielweck avatar danielweck commented on July 17, 2024

Suggestion: pause all videos (and audios) at UPDATE_PAGINATION event.
Scroll view: multiple spine items loaded at the same time, must iterate through each XHTML document. What about manual scrolling? (no page turn, just arbitrary scroll)

from readium-shared-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.