I wanna validate the youtube video id with JavaScript and make sure the video can be played normally(haven’t been deleted)
I noticed many guys mentioned http://gdata.youtube.com/feeds/api/videos/VIDEO_ID, but the response data is formatted as xml. I tried to send jsonp request and got error messages coz the xml formatted.
Is there any way to do it without setting a proxy by some back-end codes??
It seems it’s possible via JSONP:
https://developers.google.com/youtube/2.0/developers_guide_json?hl=en