Monday, July 30, 2012

Re: [YouTube-API] Auto exit fullscreen on iPhone using Javascript

The webkit* methods won't work because the "full screen" is being
created by an element inside the iframe (which you can't control because
you're on a different domain). The only way to do this would be through
an official iframe API method.

unfortunately I don't believe there is such a method in the player API.

Tim Wintle

On Wed, 2012-07-25 at 09:25 -0700, Daniel O'Brian wrote:
> Is there a way using Javascript in iOS Safari to programmatically exit
> full screen video mode when a video has finished playing.
>
>
> I have the YouTube iframe API generating iframed content on request
> and the code is capturing the video ended play state successfully but
> nothing seems to be able to kick the player out of full screen mode.
>
>
> So far I have tried:
>
>
> document.webkitCancelFullscreen();
> document.webkitExitFullScreen()
>
> player.webkitExitFullScreen()
> player.webkitCancelFullscreen();
>
> (where player is the iframe API instance).
>
> --
> You received this message because you are subscribed to the Google
> Groups "YouTube APIs Developer Forum" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/youtube-api-gdata/-/pNE57RDl1gEJ.
> 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.


--
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