Here is a sample of the requests:
http://gdata.youtube.com/feeds/api/videos/02HCaj9h8Lo?v=2&alt=json&callback=__gwt_jsonp__.P8.onSuccess
http://gdata.youtube.com/feeds/api/videos/02HCaj9h8Lo?v=2&alt=json&callback=__gwt_jsonp__.P7.onSuccess
http://gdata.youtube.com/feeds/api/videos/02HCaj9h8Lo?v=2&alt=json&callback=__gwt_jsonp__.P6.onSuccess
All with the same exact content!
public void getVideo(final String url,
final AsyncCallback<YoutubeVideoData> async) {
String reqUrl;
reqUrl = "http://gdata.youtube.com/feeds/api/videos/" + id + "?v=2&alt=json";
requestBuilder.requestObject(URL.encode(reqUrl),
new AsyncCallback<YoutubeVideoData>() {
public void onFailure(Throwable caught) {
async.onFailure(caught);
}
public void onSuccess(YoutubeVideoData result) {
async.onSuccess(result);
}
});
}
Also, I'm getting this error for including a frame of a different domain:
Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8888/Mobaraty.html?gwt.codesvr=127.0.0.1:9997#AddContent from frame with URL http://www.youtube.com/embed/02HCaj9h8Lo?wmode=transparent&rel=0&autohide=1&showinfo=0. Domains, protocols and ports must match.
<add-linker name="xsiframe" />
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment