As far as I understand it, a video playback cannot be initialised by a
javascript on iOS, unless the playback has already been started by a
previous user interaction.
Ie you capturing a user interaction with javascript, and telling the api
to play a video via javascript, doesn't count as the video playback
being initialised by a user interaction in safari (as I understand it).
Once the video has been clicked on once the api should function normally
(at least for a while - there are more complications)
Tim
On Tue, 2012-01-10 at 15:58 -0800, misterfancypants wrote:
> Hi Tim,
>
> Thanks for reply.
>
> I believe the post you linked to only pertains to autoplay:
>
> "To prevent unsolicited downloads over cellular networks at the
> user's expense, embedded media cannot be played automatically in
> Safari on
> iOS—the user always initiates playback."
>
> I should be in the clear; I am not setting the video to play
> automatically. Indeed, I am not setting the autoplay parameter at
> all.
>
> Further down in that post:
>
> "but for iPad you must either set the controls attribute or provide a
> controller using JavaScript."
>
> I should also be in the clear here since I am providing the controller
> via javascript.
>
> So, since I am not autoplaying, and since the video waits for the user
> to initiate the video with a click (which fires a supposedly legal js
> function), my code should work. Unless I'm missing something else?
>
> Thanks!
>
--
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