How can I make Video.js work on iOS devices? - iphone

I'm using the Video.js framework for displaying videos on my HTML5 pages.
The videos display correctly on all desktop browsers (the latest version of each), but not on my iPhone or iPad (it doesn't show anything).
How can I make it work on them too, especially the iPad?

It is VERY important that you encode the mp4 file using the "Baseline" settings. I was using Adobe's Media Encoder for the mp4 file I was generating. Even though I selected a preset for Apple TV, iPad, iPod... the default profile was "Main". This did not work on my iPhone. When I re-encoded I set the Profile to "Baseline" and the Level to 3.0 and, Voila, it plays on my iPhone.

Related

How to play local audio/video files in all iPhone and iPad versions from with in our PhoneGap application?

My requirement is to play local (bundled with the app) audio and video files in all iPhone and iPad versions from within in the PhoneGap application.
I have tried using HTML5 audio and video tags to play local audio and video files respectively. I am able to play them in the iPhone and iPad 5.0 and 4.2.x simulators.
I am not sure if HTML5 video and audio tags are supported on which versions of iPad and iPhone iOS.
Cam you please let me know which versions support HTML5?
If only new versions support them how can i play audio and video files on all versions from within PhoneGap application?
Thanks,
Prasanth
Take a look at this list:
http://www.expertisemobile.com/2011/10/28/html5-video-and-audio-tags-support-on-mobile-device-real-world-feedback/
In my opinion today's apps don't have to work in very old version of iOS so supporting iOS 4 and newer would be ok.
Go ahead, even if the tag is not fully supported by older version, it still works!

Play SWF files one the iPhone

I am new to the iPhone development, I need to develop application in which I can load SWF files (shock wave file). I have done lots of research but I couldn't get it to work. How do I load it on the iPhone ? if it's not possible, what alternatives do I have ?
There is no Flash player on iOS and no other solution to play Flash in your app. However, you might want to look into Adobe AIR for iOS which is able to produce iOS apps.
The iPhone doesn't support flash.
iOS Doesn't support Flash so you won't be able to launch a swf. If you have the source for the SWF you could consider building an ios app through Flash CS5+. Also, you could try porting it to haxe, which is very similar to actionscript and should allow you to build for both Android and iOS at once.
As I know there is no such application (expect Frash, which is only available on jailbroken iPhones) which can load SWF Files on an iPhone.
The only way you can go is to convert that file in an iPhone readable format, which I can't recommend as the results are normally horrible.
Otherwise I suggest to recode the behaviour of that SWF File in Objective C or something similar to that.
There is no Flash player in iOS. Even more – it is forbidden by Apple iOS Developer Agreement to deploy them (and other technologies where you may use an app to execute another executable code of any kind (SWF, Java, AIR, etc.) on iOS devices.
You can also make your own flash player.

Creating links on a web page that tell a mobile device to play the media such as mp4 rather than download it. (android / iphone)

Is there a way to specifically format a link on my page to tell a mobile device such as an Android phone or an iPhone that when a user clicks a link to a mp4 file (for example) to go ahead and play it (or ask the user if they want to play it) using their phone media player?
I'm working on a web app with mixed results, most of the times the device just goes straight into download mode, and attempts to save the file to the downloads folder, but what I would like is to make it so the device starts automatically playing the file as soon as possible.
My app is basically a file sharing app that creates qr codes and thus allows you to share media to mobile devices... the thing is, when it comes to video files and maybe images, I want the phone to automatically display the media and not just download it.
Any help would be greatly appreciated. You can see the app here http://scan2see.me
You could always use a <video> tag to make your videos play instead of just linking to them.
FYI iOS devices never download anything, unless jailbroken and with Safari Download Manager plugin (or other one like it) installed. So even if you just link, it will always play. And the reason why all videos play at full screen is because the iOS instantiate Quicktime to play it.

Listening to an mp3 from a website with an iPhone / iPad

I've seen the answers to how to correctly add an MP3 to a website so that it'll play by default in iPad or iPhone - this question is different.
For a visitor of a website -- how can you hear that mp3? Changing the code of the webpage is not an option. The site/mp3 in question is on the bottom of this page: http://187.45.233.63/novenas.php?id=pa30_01_2011 (the mp3, not the video).
iOS (iPad and iPhone) doesn't support Flash, but that page is using Flash to play the MP3 (and the video).
The only way an iOS user could get to it is to view the source and copy and paste the path (videos/novenas/paieterno_30_01_2011.mp3) to the MP3.

Is there any way to play video on an iphone from a website, without using youtube or a custom app?

I'd like website viewers to be able to play a video on an iphone, without posting the video to youtube, and without them having to install any iphone apps. Are there any other options here?
If you host a Quicktime movie, it'll play just fine without any additional software. There is a "designing web pages for the iPhone" document somewhere on Apple's web site that gives more detail on supported formats, I think.
just having a link to a quicktime-playable video file works I believe