Comments (2)
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.
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)
- Chapters getting truncated [iOS - readium-shared-js library] HOT 4
- Absolutely positioned elements are misplaced HOT 5
- Building URL query parameters strips out #fragments HOT 1
- FAQ: custom external font faces
- Hyperlinking: hash fragment identifiers are discarded by internal pagination / scroll offset logic? HOT 3
- Use of reserved word "package" HOT 2
- Turn pages very slow in big html files with Android System Webview 63 HOT 25
- calculatePageIndexDeltaByRectangles has wrong logic calculating pageIndex HOT 6
- Build output: UMD bundle HOT 4
- Internet Explorer very slow to resize document with large spines (100+ pages)
- Please help, openContentUrl() dosen't work well in Electron app when the url contains #. HOT 1
- Rangy dependency not needed strictly-speaking (SMIL experimental feature + Juan's highlighter) HOT 2
- Firefox: Resize Sensor does not trigger when content after expanded element flows into following columns in a certain way
- Highlights HOT 1
- In Redium Reader CFI - is it possible to go exact CFI location in a reflowable document when search text location are multiple in a page HOT 4
- Is there any reason why navigator.epubReadingSystem is writable? HOT 2
- Invalid location/CFI received HOT 2
- Issue with continuous scrolling using (macOs + Safari) trackpad
- The page turn is not done with the readaloud
- API Document
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readium-shared-js.