Monday, April 23, 2012

[YouTube-API] Re: iframe on ios

OK, at the moment I'm not sure why the iOS 5.0 simulator did not
require mediaPlaybackRequiresUserAction to be set but nonetheless
testing on an actual device with iOS 5.1 will allow you to autoplay
videos as long as mediaPlaybackRequiresUserAction is set. Hope this
helps.

-J

On Apr 22, 2:14 pm, james <jdiom...@gmail.com> wrote:
> 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