Comments (10)
Our plan is to use the current WebKit engine, so for now I don't think we are going to re-implement it. However, are you sure you can't do that even today with a little of javascript attached to the ready event of the page?
from baker.
yes, JS will work, you can trigger the play/pause event of the html5 player easily.
btw., autoplay for video works fine in webkit..
from baker.
I did find some Javascript stuff online after I posted this comment... However in some of the comments on a couple blog posts people mentioned that the autoplay workaround using Javascript was broken in iOS 4+.
I haven't been able to get anything to work. Maybe I'm a moron though. I've dorked around and can't get JS to trigger the play event.
@vanderbreye - do you have any example that you know works?
Thanks guys!
Andrew
from baker.
sure. it is only video, but i assume, this would work on audio as well..
<script> $(document).ready(function() { function playPause() { var myVideo = document.getElementsByTagName('video')[0]; if (myVideo.paused) myVideo.play(); else myVideo.pause(); } playPause() }); </script>
for video, this is clearly running on IOS 4+.
from baker.
UIWebView has an attributes "mediaPlaybackRequiresUserAction" from iOS 4.0+, default YES
Reference: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html
from baker.
Thanks Xm4s... After changing that default setting in the actual Baker Framework code, I'm able to use the autoplay feature of the HTML5 audio tag and it works great. Thanks for posting that!
Andrew
from baker.
Hey, i'm new here, sorry if i'm not already at the same speed of all of you.
I've developed a simple page with audio inside. It's html5, mp3, and with standard html5 works.
The problem, or better the feature needed, is that the reader can't change page without stopping the audio / video.
I understand this can bring the discussion far from the direction of this thread, but I'm working to find a solution to have audio / video without iframes even changing the pages. Is someone working on this matter ?
from baker.
If you need a background audio I think you can just add that in Objective-C and control it maybe through javascript calls. Unfortunately there's nothing "native" in HTML that persists through different pages.
from baker.
Yes, this is what I was thinking about. Could be an extension of HTML: [a href=url target=_player]with or without text[/a] Loading the page the app should show a play button at the bottom of the screen, for example. This is the idea. I'll try even if I'm a newbie in C.
from baker.
I think we can mark this as closed, tho. :)
from baker.
Related Issues (20)
- File may not be a valid hpub archive. HOT 1
- Weird parsing error in xcode project. HOT 1
- Issues not showing on newsstand HOT 1
- Termintated due to memory error HOT 1
- Copy and paste in the magazine HOT 2
- Display only downloaded magazine on baker shelf HOT 2
- Error on AppleStore HOT 1
- Working with big pdf's HOT 1
- Auto renewable subscription fail in ITC HOT 1
- Baker 4.3 padding on Cells HOT 1
- Attempting to badge the application icon but haven't received permission from the user to badge the application HOT 1
- Baker Standalone App and In-App Purchase HOT 8
- Adding a button to the shelf HOT 1
- ★ THE PROJECT HAS MOVED → BakerFramework/baker
- Issues with HTML images on Baker framework on iPad HOT 1
- Scrolling model: Vertical (view article content) Horizontal (change article) HOT 1
- Side panel links do not react on iPad HOT 2
- hi, would you mind i translate what you say to chinese? HOT 1
- Migrating from InDesign to Baker Framework HOT 2
- free subsciptions HOT 1
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.