Solved

How to make YouTube API Calls from GWT App

Posted on 2012-12-21
1
458 Views
Last Modified: 2012-12-25
I need to integrate YouTube API into my GWT web application. I need to make YouTube API calls such as the following:

UPLOAD: https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading
CHECK STATUS: https://developers.google.com/youtube/2.0/developers_guide_protocol_checking_video_status
SET DEVELOPER TAGS: https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos

In order to circumvent browser's same origin restrictions, the calls have to be CORS calls.

How can I make these YouTube API calls from my GWT web application? A small code sample would be greatly appreciated.

Note that I have tried using YouTube Direct Lite, but it seems it doesn't allow setting developer tags, which is crucial for me.
0
Comment
Question by:XiX101
1 Comment
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 38716927
AFAIK the gdata.youtube.com web servers hosts YouTube Data API supports CORS.
check here for sample code and some documentation:
http://gdata-samples.googlecode.com/svn/trunk/gdata/youtube_upload_cors.html

bare in mind that CORS works using XMLHttpRequest interface which is not supported by all browsers.
check here for compatibility:
CORS browser compatibility
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now