Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to make YouTube API Calls from GWT App

Posted on 2012-12-21
1
Medium Priority
?
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
sedgwick earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

715 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