I'm really hoping someone might be able to help me, but nobody has posted a response
I hope they do respond... I think the <videodisplay> component is not optimised for mobile, so I used the actionscript netstream/video class to write my own player.
It worked on the desktop, but not on the iPhone when exported as an .ipa file.
There is very little clarity on video for mobiles, even to someone clearly saying you can/cannot write a video app for an iPhone now.
If anyone out there has managed, please let us know...
On iOS, AIR 2.7 only supports the On2 codec (not H.264). I've seen workarounds where people use StageWebView. For example: http://sonnati.wordpress.com/2011/04/26/air-2-6-for-ios-and-video-playback/
So what you are saying is to encode video using the on2 vp6 codec as an flv, embed it into the flex app and create an ipa? It seems counter-intuitive to create an flv formate video for a ios app considering ios does not play flash files. Did I understand your response correctly?
1 person found this helpful
If you want to play the video directly in AIR for iOS, yes. This is a current *limitation* in AIR for iOS.
> It seems counter-intuitive to create an flv formate video for a ios app considering ios does not play flash files
AIR has the code to play on2 encoded videos.
However, if you want to leverage native iOS capability to play H.264 video, then use the StageWebView workaround.
This is very helpful and I will try it out.
The reason my app using the actionscript netStream and video classes didn't work was, as mentioned above (thanks), that I was streaming H.264. I changed the stream to VP6 and it worked fine. As I use both encodings, I guess I will have to use stageWebView for the H.264 ones - hopefully it plays live rtmp streams.
I also read somewhere that the reason Adobe do not have h.264 on the ios platform is due to some licensing/copyright issue, so it may not be something we can expect in later updates.
You have to dig deep to get this info - so thanks to those who share the info. Here's an update - the next Air update, Air 3, will have StageVideo for the mobile platform.
I tested it on an ipad and it worked great. Thanks for your help.
I reupdate this post for a linked question : I manage to play my video on the iPad but i don't have the sound oO.
The video with sound work perfectly on the simulator.
Any idea ?