I want to add youtube video list but not video player. So what I need is
Video Title
Video Thumbnail
Video Duration
Somehow I manage to get Image Thumbnail by using this http://img.youtube.com/vi/4wew2uWoARw/hqdefault.jpg but I couldn't found how to add title and duration.
Can anyone help me to get these.
You can retrieve JSON metadata about a video given its id using the Data API v2: https://gdata.youtube.com/feeds/api/videos/VIDEO_ID?v=2&alt=jsonc, e.g.
https://gdata.youtube.com/feeds/api/videos/4wew2uWoARw?v=2&alt=jsonc
Related
I am using https://oembed.com to embed youtube videos in my project. I am able to get thumbnails for most of the videos. But for some I am getting link where video is not available and shows 'This video isn't available any more'.
I am using this format 'https://www.youtube.com/oembed?url=${youtubeurl}&format=json'
How can I fix this? Any ways to filter out the videos which are not available?
Suppose I have an image of a video thumbnail, and I want to retrieve all videos with a similar thumbnail. Does Youtube or Google's API provide a method to achieve this?
I have a video which I need to upload on a company's website but that video has subtitles, which we do not want to show in the website, is there anyway or any parameter defined which we can add in YouTube URL and the subtitle doesn't play.
Kindly suggest.
Thanks and Regards,
Shashank Agarwal
How do I upload a photo slideshow to Youtube using their API?
I could not find it here:
https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos
Looks like there is only API for regular video uploading.
update:
Photo slideshow is the second option for manual video upload. Here: http://www.youtube.com/my_videos_upload
You can attach several photos, add music from predefined list and modify video settings like title, description, etc. It will be converted by Youtube to video internally and published.
i have an swf media player
which play flv videos
but i want it to play youtube videos
so i must pass to the player flv file path
the senario is a website which i can upload videos or put a url
and i can put a youtube video URL
i am using asp.net
and i need a solution
whenever i detect a user is entering youtube video
i must convert it to flv file path to be played in the player
This post explains how to retrieve links of different qualities (FLV and more): youtube get_video not working
However, if you're just going to play the videos, it would be easiest to use Youtube's chromeless player API: http://code.google.com/apis/youtube/flash_api_reference.html
You can use a current web service which is already implemented for your project
Use www.keepvid.com to decode the url from YouTube. First go to YouTube and load a video then you copy the url in the address bar and it should show something like this:
http://chi-v48.chi.youtube.com/get_video?video_id=TvedUxLtZKQ
One thing left to do is to add .flv to the end of the url so it ends up like this:
http://chi-v48.chi.youtube.com/get_video?video_id=TvedUxLtZKQ.flv