Jim,
After some testing it appears that when using the javascript api,
as long as you handle the onReady event, you can call playVideo()
regardless of the webView attribute mediaPlaybackRequiresUserAction.
I'm not sure if the behavior has recently changed, but this has
definitely been verified at least in the iPhone simulator running iOS
5.0, however on an actual device running iOS 4.2 (don't ask) this did
not work. I will need to check on a device running the latest iOS for
final verification.
-J
On Apr 16, 4:59 pm, jimmy000 <jim.orla...@gmail.com> wrote:
> I have read about the autoplayback limitation that iOS imposes on
> webview (where the user must hit 'play' to make a video play even
> though any other html5 browser would automatically play a video).
> Question: does using:
>
> webView.mediaPlaybackRequiresUserAction=FALSE;
>
> change this behavior at all? ie is it possible to have a webView
> window in an iOS app automatically play a youtube video without
> requiring the user to touch the video to press play to make it play?
>
> (I would try this on my own, but my development environment is the
> Flash iOS packager, which does not support a
> mediaPlaybackRequiresUserAction=FALSE command. I am hoping that
> someone who works purely in Apple dev tools has tried this an can
> comment on whether it is possible to remove the need for user
> interaction in an iOS app.)
>
> Thank you in advance for any info that anyone can provide.
>
> ...Jim
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment