Wednesday, April 18, 2012

[YouTube-API] Re: iOS support for multiple instances of YouTube player

Hello James,

The <iframe> embed writes a <video> tag to the page with the
appropriate source URL of the video stream. I'd expect it to behave
like any other <video> tag on iOS. It might be that iOS has a
limitation that prevents multiple web views within the same
application from playing back content at the same time—there's nothing
specific in the YouTube Player API that prevents this, and it's
something that works fine in other host environments.

Do you have better luck using multiple <iframe> embeds within the
same web view rather than hosting them each in their own web view?

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


On Apr 17, 9:49 am, james <jdiom...@gmail.com> wrote:
> At the moment I do open several web views. Each contains a separate
> page that instantiates a new player using the javascript api. It is
> possible that I may need some further configuration parameters to
> isolate the players, but the only hint I can gather is from an iOS log
> statement "setting movie path: [...]". This would appear to come from
> a movie player instance and would definitely cause the limitation we
> are experiencing.
>
> On Apr 16, 7:08 pm, jimmy000 <jim.orla...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I have noticed the exact same behavior that you describe.  I'm not
> > sure if this solves your problem, but rather than opening several
> > player instances within a single .html file, how about opening several
> > webviews within an app, each with a separate play instance?
>
> > On Apr 15, 4:54 pm, james <jdiom...@gmail.com> wrote:
>
> > > ...just wanted to check in with everybody and confirm. For iOS,
> > > specifically on the iPad where YouTube videos can be played inline,
> > > when I create multiple web views and instantiate separate instances of
> > > an embedded YouTube player, only one player can playback video/audio
> > > at a time. Interestingly enough, when I try to play a video while
> > > another is ongoing it automatically stops the previous video.
>
> > > I was currently investigating the possibility of playback for multiple
> > > YouTube player instances simultaneously, but so far it appears that on
> > > iOS they actually use a hidden subclass of a movie player which only
> > > supports one instance of playback at a time.
>
> > > Can someone from the team possibly comment/confirm on how the YouTube
> > > API interacts with iOS? i.e. is there another way to do what I am
> > > looking for?
>
> > > Thanks,
> > > James

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