WebKitBits

RSS
A tumblog about the browser engine built into Safari, Chrome, iPhone, Palm Pre, and Android.

Written by David Kaneda, Creative Director at Ext JS. Submissions welcome.

POWERED by FUSION
Latest from @WebKitBits:

    Posts tagged with “iphone” :

    Implementing HTML5 Video on the iPhone

    Jonathan Stark outlines some quick notes about implementing HTML5 video on the iPhone:

    • Poster image is only displayed until the video is loaded.
    • True/false attributes do not require values.
    • Video can be played (and heard) even when not visible.
      i.e. video { display: none }
    • The autoplay attribute is ignored on iPhone.
      i.e. will not autoplay no matter what
    • The controls attribute is ignored on iPhone.
      i.e. controls are visible no matter what
    • The remote file is downloaded whether or not the user clicks play.
    • You can interact with the DOM while iPhone video player is open.
    • You can make a video autoplay on iPhone by navigating directly to the video url. However, this is useless within the context of an Ajax app because it spawns a browser window.
    Apparently, the touchstart event object persists in browser memory even when the event has long ended. More importantly, it continues to be updated with information about the current touch action.”
    PPK details a discovery that could have a huge impact for mobile web app performance.
    There are fantastic web applications on the iPhone. I use Gmail and Google Reader as a Web app, for example. The browser is good, but I have written many times … about how I wished that Apple let me go the extra mile and access more from the Web side of things.”
    Dion Almaer, of Ajaxian fame, provides his own response to PPK, citing APIs and discoverability as the primary benefits of going native over web. It surprises me that most of these articles do not dive into PhoneGap—a great bridge for iPhone web apps which gives developers access to native APIs (via Javascript) and allows them to publish to the app store.
    ‘Good enough’ is not good enough on the iPhone.”
    John Gruber counters Peter-Paul Koch’s recent article regarding the viability of commercial web apps on the iPhone.

    2009-2010 David Kaneda