Most web developers agree that the ability to play video on webpages is a must, however the jury is out on how these videos should be played. I’m of course referring to the HTML 5 video format controversy. Throw FlashPlayer into the mix and you’ll end up with a humongous fight leading fast to nowhere. Based on this, focusing on finding a solution, I tried to piece together a player using both HTML 5 video, and FlashPlayer for less capable browsers like Internet Explorer. You can find a demo alpha version of the player here: http://makingria.com/demo/html5/videoplayer/
Browser support
The player supports the following browsers:
- Internet Explorer 7 (FlashPlayer, H:264 video)
- Firefox 3.6 (Native playback, OGG Theora video)
- Google Chrome and Apple Safari (Native Playback, H.264 video)
- iPad and iPhone (Native Playback)
- Opera 10.5 (Native playback, OGG Theora video)


A while ago I joined the Flash CS5 pre-release program eager to test the iPhone packager that there has been so much fuzz about. After downloading the latest beta version of the Adobe Flash CS5 I started with some small and easy tests, to test the performance when running a Flash solution on an iPhone.
My first App consisted of an image of the iPhone “homepage” with some basic touch-behavior. Tapping the left side would make the image spin, rotating the Y-axis 180 degrees (.rotationY). Tapping the right side would spin the image the other way, while tapping on the top or bottom the image would rotate the X-axis (.rotationX). I used the Tweener-class to animate the rotation, using a “easeOutElastic” transition effect. The animations where of course quick and responsive on my computer, but how will the iPhone react to this? I worked very fine indeed. I tested on a iPhone 3GS and my old 3G. Both reacted as quick and responsive as it did on my computer. Nice! But hey, this was very basic…
I expanded my tests by using the new Accelerometer Class in AS3, making the image change its rotation-parameters according to how I held my iPhone. This also worked very well and my belief in the Flash iPhone packager continued to grow.
Time to build a real App!
Read More »