Comments (7)
I have seen that video behaviour. Since we keep three pages in memory it will stop only after you turn 2 pages away. There is a simple solution though, add a javascript listener to the window so when it looses the focus it stop the video.
Here is an example using jquery:
//Should pause the videos if the page looses the focus
window.addEventListener("blur", function() {
jQuery("video").each(function() {
var vid = jQuery(this);
if (!vid[0].paused) {
vid[0].pause();
}
});
}, true);
from baker-android-refactor.
ok i will try it. Any suggestions why the the GIFs are stopping?
from baker-android-refactor.
it worked. thanks :)
from baker-android-refactor.
Nice, sorry I can't help with the GIF I actually haven't seen that issue, but I let you know if I find something.
from baker-android-refactor.
I tried a single GIF in one page and it worked fine.I guess the problem is that I have too many GIFs and that causing them to stop.Thank you again.If I find a solution I will post it.
from baker-android-refactor.
I find a solution with the GIFs . I Converted them into html5 video.It is smaller from GIFs and I play without problem.There are many online tools for it.
from baker-android-refactor.
Thats great news .. Thanks for posting.
from baker-android-refactor.
Related Issues (20)
- Parse Config HOT 10
- Can't upload an APK for beta testing HOT 4
- YouTube video embedded not playing
- Bug with links HOT 2
- Solved.
- Android Minimum Version HOT 1
- Please, make a wiki on inApps! HOT 4
- Could not read the shelf from the device HOT 1
- How to init one issue automatically?
- White page on webview HOT 5
- App stucked at Splash Screen HOT 3
- How to implement Backend API for in-app?
- How can open app and open automatically the book?
- Any swipe in the ebook is superseded by swipe page gesture
- Baker for android cannot open links inside the book
- Problems with PNG alpha channels in Baker Android
- Failure to unzip the file
- VersionCode and VersionName Question. HOT 2
- PROJECT STATUS
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 baker-android-refactor.