Thursday, January 19, 2012

[YouTube-API] Re: Playback from time offset on iOS devices?

Hello John,

Passing in a t=24s URL fragment is not part of any supported API.
It's a convention used on the YouTube watch page. The supported way of
specifying a start time value as part of the <iframe> embed URL is
using the "start" URL query parameter:

http://code.google.com/apis/youtube/player_parameters.html#start

That being said, I believe a colleague of mine is currently looking
into some reports that the start URL query parameter isn't working as
expected on iOS, so while that's the recommended syntax, I can't
guarantee it's going to work right now. It should as soon as the issue
is cleared up, though.

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Jan 18, 8:53 pm, johncfox <j4john...@gmail.com> wrote:
> Hello World:
>
> I would dearly love to be able to playback YouTube videos from a
> specific time offset using the iFrame player on iOS. I have been
> unsuccessful in doing so, thus losing the respect of my seven year old
> son. He complains that he's getting teased on the schoolyard because
> of his dad's shortcomings.
>
> Here's the HTML I'm using:
>
> <html>
>     <body style="background-color: rgba(0,0,0, .95);">
>     <center>
>     <iframe title="YouTube Video Player" width="90%" height="90%"
> src="http://www.youtube.com/embed/1p-TV4jaCMk?
> feature=player_embedded#t=24s" frameborder="0" allowfullscreen></
> iframe>
>     </center>
> </body>
> </html>
>
> If the Flash player ends up being used (as is the case when loading on
> Safari for Mac, for example), playback from time offset works just
> dandy. If I load the same HTML on an iOS device, it doesn't work.
>
> I've also tried using <object> instead embed technique, which, again,
> works fine on the desktop with the Flash player, but not on an iOS
> device. With either the iFrame or using an <object>, ultimately, it's
> the Apple authored YouTube player which is doing the playback, so
> perhaps this is Apple's issue, and I'm hosed.
>
> If by chance there is some magic invocation I'm missing, and there is
> a way to achieve playback from offset (ideally with automatic
> playback), I would be a very happy man.
>
> Any help greatly appreciated.
>
> Best,
>
> John

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