Skip to main content
Inspiring
June 7, 2012
Question

inline (non full-screen) video in stageWebView for iPhone (iOS)???

  • June 7, 2012
  • 1 reply
  • 1747 views

According to this post (below), all we need in order to allow native inline video for the iPhone is a simple Obj-C property

webview.allowsInlineMediaPlayback = YES;

in conjunction with adding "allowsInlineMediaPlayback" to the html5 video tag.

http://stackoverflow.com/questions/3699552/html5-inline-video-on-iphone-vs-ipad-browser

Anyone know how to do this in AIR? Is there a native extension which would help me accomplish this easily?

???

PS. Inline functionality works great on the iPad. However, on iPhone without the above property setting, the video.play() javascript call will trigger the fullscreen player, isolating the video and any javascript eventListeners completely from AIR.

Message was edited by: gtr

This topic has been closed for replies.

1 reply

gtrAuthor
Inspiring
June 7, 2012

PS. In case anyone's wondering why I don't just use stageVideo, "inline" stageWebView video is the only way AIR can allow your customers to send in-app video to the Apple TV without losing app functionality during the video playback. ie: retaining dual-screen functionality.

gtrAuthor
Inspiring
June 9, 2012

Okay. I guess it's not possible?

Seems like the closest way to get there would be the UIwebview Native Extension. But the examples on the website are pretty vague as to it's use. (at least for a non-C coder like myself)

Anybody use that particular ANE? Anyone? Bueller? Bueller?

Again, just need to set a simple property here...