There's an example of how to handle onError events at
http://code.google.com/apis/youtube/iframe_api_reference.html#Events
http://code.google.com/apis/youtube/iframe_api_reference.html#Examples
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 5, 1:49 pm, PJ Gray <p...@evertrue.com> wrote:
> I can confirm I am getting this exact error as well. Sometimes I get
> the play with slash error, sometimes it plays. I am using this
> iframe code:
>
> NSString *htmlString = [NSString stringWithFormat:@"<iframe type=
> \"text/html\" width=\"320.0f\" height=\"180.0f\" src=\"http://www.youtube.com/embed/%@\" frameborder=\"0\" allowfullscreen></
> iframe>", thisId];
>
> How can I trap the onError?
>
> thanks,
>
> -pj
>
> On Dec 5 2011, 3:50 pm, Jeffrey Posnick <je...@google.com> wrote:
>
>
>
>
>
>
>
> > Hello Joseph,
>
> > I don't have any knowledge of similar unreproducible playback
> > failures with the <iframe> embed in a UIWebView. That thread you link
> > to, for instance, is focused on the <object>/<embed> embed code, which
> > behaves quite differently.
>
> > Are you handling the onError event raised by the player? Is it
> > triggered when you see the loading failures, and if so, what's the
> > error that's raised?
>
> > Cheers,
> > -Jeff Posnick, YouTube API Team
> > groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> > @YouTubeDev
>
> > On Dec 1, 8:09 am, Joseph Benguira <z51...@gmail.com> wrote:
>
> > > Hello
>
> > > i have a really strange bug, i'm using a youtube iframe in a uiwebview
> > > on ios 5.
>
> > > Sometimes it work correctly ... and sometimes not ...
>
> > > when not working, i get a play symbole slashed (like unable to play
> > > the video) and every single video i try to play have the same issue.
>
> > > i was unable to find the origin ...
>
> > > this is not video dependant because sometimes, after rebooting the
> > > device, or killing & restarting the app, i'm able to watch every video
> > > without error
>
> > > restarting the device or the app don't solve the issue each time ...
>
> > > Another really strange thing is that it always work perfectly in
> > > safari !!!!
>
> > > the uiwebview show this url :http://youzeek.com/helixmini.aspx
>
> > > any ideas ?
>
> > > i find another topic with a similar issue :http://groups.google.com/group/youtube-api-gdata/browse_thread/thread...
--
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