In webView, is it possible NOT to play a video in full-screen automatically?

My app is using webView to open various websites on demand.

When a website (web page) has a embedded youTube video advertisement as a banner, Corona webView will play this video automatically in full screen.

This behavior totally upsets the app users. They think my app forces them to watch the video ads in full screen while I am totally innocent.

Does Corona has the control “NOT” to play video automatically inside the webView module?

What platform are you on?

What’s the URL you are opening in the webview?  If you open that in the browser does it go full screen?

iOS platform.

The webpage is just a random one that has a video as a banner ad. If I open it in a PC browser, it does not go full-screen. It’s just a banner ad. But webView will play it in full-screen suddenly.

So here’s a “random” webpage with a HTML5 video on it: http://www.banmanpro.com/html5_video_ad.asp

When you load that page and play the video in Safari on an iOS device the video goes fullscreen.  The webview in CoronaSDK works in exactly the same way (it is, after all, really Safari).   How it works on a PC isn’t really relevant.

The video on that page is set to autoplay and it starts automatically on the desktop but it does not in Safari on iOS (sometimes people complain that it isn’t possible to autoplay video on iOS but that’s by Apple’s design: they don’t want to burn people’s cellular bandwidth).  If you have a page that autoplays video on iOS send me the URL and I’ll take a look at the autoplay aspect but the fullscreen “issue” is just how Safari works on iOS.

Bumping this because it’s really useful these days. Is there ANY to allow the allowsInlineMediaPlayback of the iOS webviews to be set to “true”, making video playback occur on the device itself? Or if that wouldn’t be possible - because I read it only works on the iPad, is there any other way to have videos play in fullscreen ONLY in the webview? And not take up the entire iPhone screen? Similar to the YouTube app or tons of other apps out there that just have a window specific to the video that you can then position anywhere?

Would be extremely useful for us to have this feature as fullscreen should only be an option if the user chooses it to be so, and if not, they should be able to watch the video while being able to do other things like scroll through the videos comments or rate it etc.

A feature like this, if not planned, would be incredibly useful. Not only for us and the app we’re working on, but for video playback in general and it is possible in iOS/Android. Not sure if it is a webview they use with a property set or if it is a different specific video view window, either way would be incredibly useful.

Thanks,

What platform are you on?

What’s the URL you are opening in the webview?  If you open that in the browser does it go full screen?

iOS platform.

The webpage is just a random one that has a video as a banner ad. If I open it in a PC browser, it does not go full-screen. It’s just a banner ad. But webView will play it in full-screen suddenly.

So here’s a “random” webpage with a HTML5 video on it: http://www.banmanpro.com/html5_video_ad.asp

When you load that page and play the video in Safari on an iOS device the video goes fullscreen.  The webview in CoronaSDK works in exactly the same way (it is, after all, really Safari).   How it works on a PC isn’t really relevant.

The video on that page is set to autoplay and it starts automatically on the desktop but it does not in Safari on iOS (sometimes people complain that it isn’t possible to autoplay video on iOS but that’s by Apple’s design: they don’t want to burn people’s cellular bandwidth).  If you have a page that autoplays video on iOS send me the URL and I’ll take a look at the autoplay aspect but the fullscreen “issue” is just how Safari works on iOS.

Bumping this because it’s really useful these days. Is there ANY to allow the allowsInlineMediaPlayback of the iOS webviews to be set to “true”, making video playback occur on the device itself? Or if that wouldn’t be possible - because I read it only works on the iPad, is there any other way to have videos play in fullscreen ONLY in the webview? And not take up the entire iPhone screen? Similar to the YouTube app or tons of other apps out there that just have a window specific to the video that you can then position anywhere?

Would be extremely useful for us to have this feature as fullscreen should only be an option if the user chooses it to be so, and if not, they should be able to watch the video while being able to do other things like scroll through the videos comments or rate it etc.

A feature like this, if not planned, would be incredibly useful. Not only for us and the app we’re working on, but for video playback in general and it is possible in iOS/Android. Not sure if it is a webview they use with a property set or if it is a different specific video view window, either way would be incredibly useful.

Thanks,