How Can I Make It Play Video On Android/iphone?
Solution 1:
Check the following link, there seem to be some workarounds, but WebM video is definitely not supported as of yet:
Solution 2:
Did you try hinting the mp4 video (moving the 'moov' atom at the beginning) with MP4Box or qt-faststart? Android can not play mp4 video progressively if the 'moov' atom is not at the beginning..
Solution 3:
This is not at all how things are done in Android. For starters take a look at the MediaPlayer class: http://developer.android.com/reference/android/media/MediaPlayer.html
Also, take the time to look around the rest of the website. It is full of resources for learning how to get started with Android.
Solution 4:
Your code fragment appear to be an HTML code. But iphone/android application is not an HTML code/pages! I think you should be more specific about what are you trying to do.
For android, application usually consist of JAVA code and UI declared in XML according to android schema (again, not HTML!). In this case, if you need to play video, you should use android API class android.media.MediaPlayer as Amplify91 said before (and this is nothing to do with HTML or XML). If you interested in developing application for android you should go to official android site for developers.
For iPhone, situation is similar, but instead of java you should develop application using object-C language and API for iPhone/iOS (different to Android API). I think there should be something similar to android's MediaPlayer (but i am not iPhone specialist).
But if your question not about apps, but about web page, that just should be opened in browser from iOS or android device, and about html, then answer is - you should use an HTML5 tag (default browsers from both devices supports HTML5). You can read more about this tag here
Post a Comment for "How Can I Make It Play Video On Android/iphone?"