Skip to main content
Inspiring
June 14, 2012
Question

Raise your hand if you want better Native Video Player support on iPhone!

Please submit a bug/enhancement report to Apple if you would like them to remove the restriction on iPhone's ability to playback native video inline (as opposed to ALWAYS going fullscreen). This is handy for a number of application:

1. Using actionscript and stageWebView, you can control the native video player by issuing javascript calls to content embedded in an html page. (see http://www.yeahbutisitflash.com/?p=3968 for a good tutuorial)

Likewise, you can have your movie react to events happening in the native video player (time index, finished playing, etc.) by doing the reverse (again, http://www.yeahbutisitflash.com/?p=3996 is a great read for how to get started doing this)

2. You can allow the user to send video content to an Apple TV (or maybe a future iTV?) without releasing app functionality. ie: the user doesn't get locked into a full-screen state on his or her device.

The ONLY reason AIR lacks interactivity with the native player on iOS is because the Obj-C UIwebview webview.allowsInlineMediaPlayback property is set to "NO" by default on the iPhone (it is set to "YES" on the iPad and everything I described above works beautifully!)

From what I gather, in Xcode, you simply set this UIwebview propterty to "yes" along with adding "webkit-playsinline" to the html video tag in order to permit an app to play back video inline on the iPhone. I suggested to Apple they remove the restriction, perhaps requiring the html tag alone for inline playback.

If you agree that AIR should have improved native video handling, please submit a bug/enhancement report to Apple bugreport.apple.com  Having this "restriction" lifted will ensure we can produce quality Universal media apps with identical functionality on both iPad and iPhone platforms.


Thanks for reading!

Ce sujet a été fermé aux réponses.

3 commentaires

Inspiring
June 16, 2012

Is there link to an ECR that's already been filed, that can be voted up?

Do you have an iPad example demonstrating these capabilities? The StageWebView videos players I've seen always had limited control over the video.

gtrAuteur
Inspiring
June 17, 2012

What's an ECR?

I filed a bug report with Apple. I guess I'm satisfied with the response (is all I can say due to standard NDA) But from what I've read elsewhere on the 'net, the more reports that come in regarding an issue, the more it gets escalated.

Do you have an iPad example demonstrating these capabilities? The StageWebView videos players I've seen always had limited control over the video.

I have an app in development with these capabilities fully functional and very stable. Unfortunately, javascript control of native video in a stageWebView is hobbled on the iPhone due to the restriction I describe above. Specifically, the functions all work except for the vid.play() js command, which will always trigger a full-screen playback. Poop. I guess I will go for an iPad-only soft launch and put the iPhone/universal version on the back burner.

Inspiring
June 19, 2012

ECR = Engineering Change Request

A link to the request/bug you filed, so that other people who shelled out $99 might upvote you.