We had to develop solution for IE8, Android and iPhone smarphones.
First we tried to play video using HTML5 <video/> with no luck.Then I used jwplayer to play the video, but again this did not satisfy the requirement.
– IE 8 does not support HTML5, so jwplayer embedded flash object to play the video and it was okay for us. jwplayer, also plays video well in MacBook Safari 5, Firefox 8.
– Android (Gingerbread) and iPhone (4S) support HTML5, but *not* HTML5 <video/> tag… we came to know this fact after some trials, however, many in the Internet say they are able to play videos using HTML5. That is clueless.
– Android ICS browser supports HTML5 <video/> tag very well, i.e., if you are able to play video on your desktop HTML5 supported browser then it would play in Android ICS browser.
– Now, we are looking for a solution for iPhone and Android (2.2+ OS).
– As Apple iPhone does not support Flash player we were left deserted hunting for solutions. Then, luckily we found that Apple has written a script to play videos in iPhone browser here. This is truly helpful. Just follow it.
– Android phones does support Flash, then why does jwplayer not able to play the video as it’s basic working mechanism is if browser supports <video/> tag it plays the enclosed video in <source/> tags, else it would fallback to <object/> video, if provided. jwplayer does all that for us… but still video does not play in Android phones. Then we discovered that, jwplayer was paralyzed by the assumption that as browser supports HTML5 it just tries to play the video using <video/> tag and stops thinking further. It could also be that Android phones before 3.0 does not play video over https, and our video was hosted on a https schema based server.
– Now, for Android phones to play the video, we have used classic HTML <object/> tags. Again it did not work straight… initially we had the problem of “no video only audio”. With some amount of googling I came to know that the video we have is having some problem playing in Android phones and to fix it we have to use Handbrake software to properly encode the video to Android compatible.
Hurray! we are done… now our video can be played in IE8, Android 2.2+, iPhone smart phones. But for that we have to implement 3 different solutions for three different devices, see how variant the market is!
jwplayer script to support Internet Explorer 8.
Apple Quicktime script to support iPhone.
<object/> to support Android.
Hope this helps someone in need. Post your comments and make this blog lively.
Let me know if some one needs a sample code and I will email them.