Solved

How to make YouTube API Calls from GWT App

Posted on 2012-12-21
1
462 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 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 Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

752 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