"Anonymous" Youtube Playlists - html

Is there a way to embed a playlist of youtube videos in HTML by listing the youtube videos in the embed code, rather than defining a playlist in my youtube account?

This is quit simple
Just use the embed code (iframe or object code) and a parameter to the url
After playlist= you add the youtube id's comma seperated
Here an example
http://www.youtube.com/v/uG53Ce5_dI0?version=3&playlist=YW8p8JO2hQw,UouwabEZy2E,IXJ9uiT4nEM,bRcdlZ87GVY,IA96yoK9l7M,ZEU4rugs-74

I think you will find that this isn't possible with the YouTube API (I may be incorrect here), but I have been unable to find anything of the sort on the internet.
Also, everything I found which related to YouTube play-list embedding required you to login beforehand.
Update:
I found this: http://www.php-help.ro/mootools-12-javascript-examples/youtube-player-embed-with-attached-playlist/
Which uses MooTools to grab a playlist for a certain user.
Hope that helps!
And the demo: http://php-help.ro/examples/youtube_player_mootools/

Related

Add allowed embedding site to all Vimeo videos

I need to add a domain to the list of allowed places to embed videos. I can do this for all future uploads in my settings. I can do this for existing videos, one by one, using the interface below:
The issue is that there are hundreds of videos. Is there any way to add an allowed domain to all existing videos?
Yes, you need add the domains in https://vimeo.com/settings/videos/upload_defaults
See screenshot:

Embedding YouTube thumbnails

I have a question about embedding YouTube videos on a new website I'm working on.
It is a collection of livesets from different festivals around the world. Each embedded video has its own page, but on the overview pages I use the thumbnails mqdefault.jpg/hqdefault.jpg,etc of the different videos. If you click on them you navigate to the page where the video is embedded. Is embedding the thumbnails this way allowed (directly linking to YouTube)? Embedding the video is ok if embedding is enabled, but I can't find anything about the thumbnails. I can retrieve the url with the YouTube API (or just guess it) so I presume it is not a problem.
You are dependent on static url scraping are not supported. They can get changed and you may need to change your application at everytime.
For this you should use Data API v3. You should go with a videos->list request with id=videoId and part=snippet. In the response you will check snippet.thumbnails.['high'].url
Upload Thumbnail example also lists the thumbnails. However, I use static url from google. I use
https://ytimg.googleusercontent.com/vi/<insert-youtube-video-id-here>/default.jpg
It work as same as othet static url. But if you don't want to change url of thumbnail every time static url change you can go with that. I use youtube for example very limited time and only for teaching how its work. But for your site you should use api. Hope it helps you.

Search my videos by Tag

I can't find specification about search my videos.
I'm creating API calls to vimeo for one client, and I need to search videos by tag, or tags.
I've tried this
https://api.vimeo.com/me/videos?access_token=xxxx&tags=xxxx
and
https://api.vimeo.com/me/videos?access_token=xxxx&tag=xxxx
and I always receive full list of videos.
Follow the API.
https://developer.vimeo.com/api/endpoints/tags#/{word}/videos

retrieve category for specific vimeo video

I believe that a vimeo video is added to a category - determined by vimeo through some intelligent algorithm. The vimeo.videos.getInfo method does not seem to provide the category. Is it possible, through an api call, to retrieve that category to which a specific vimeo video has been added?
/categories/[id]/videos/[id] is a pattern that the Vimeo API often uses for checking whether something exists in something else. Unfortunately it is not currently supported in the API.
I'll make a note to add it in the future.

Get youtube video url form webpage source

Is it possible to get the download URL of currently playing video from source of YouTube webpage?Thanks in advance.Please help me.
Actually I have a downloader but it is not working now.When I have tried with the URL provided by the downloader in browser it returns an error page says "Access to the webpage was denied".The Url that I got for a video is as
" http://r14---sn-h557snel.c.youtube.com/videoplayback?gcr=in&ip=121.241.181.70&upn=OOcjKEO_S6I&cp=U0hUTFZQT19KU0NONF9OSlNGOmFRT2JSUUs2bDVi&ipbits=8&fexp=900148,920704,912806,928001,922403,922405,929901,913605,929104,913546,913556,908496,920201,913302,919009,911116,901451,902556&ms=au&mt=1357625350&mv=m&id=31a79fcdbfc6c2f6&sparams=cp,gcr,id,ip,ipbits,itag,ratebypass,source,upn,expire&expire=1357651559&itag=18&key=yt1&newshard=yes&source=youtube&ratebypass=yes&sver=3"
Few months before the format of URL was
" http://o-o---preferred---sn-h557snes---v24---lscache3.c.youtube.com/videoplayback?upn=AmmxhSpq470&sparams=cp,gcr,id,ip,ipbits,itag,ratebypass,source,upn,expire&fexp=917013,906437,916626,922401,920704,912806,927201,925706,922403,913546,913556,916805,920201,901451&ms=au&expire=1353668177&itag=18&ipbits=8&gcr=in&sver=3&ratebypass=yes&mt=1353646087&ip=121.241.181.70&mv=m&source=youtube&key=yt1&cp=U0hUSFZRVl9MUUNONF9OS1pCOmhtUTVMak5oTVNy&id=c429fa5466ee9447&newshard=yes "
So I don't know whether the downloader gives the correct URL. Please help me
Sorry I looked around and I couldn't find a way to directly download the source file from the youtube link. There are some guides out there but they all are around 2009; and since youtube changes their code a lot currently none of them work.
Although there are many websites, addons, apps that allow you to download videos; but I do not think they work from a code from the link. Since to watch a video you have to temporarily download it I think they all use a method of opening the page, playing(downloading) the video and actually saving it. I would list those websites and addons but since those sources are not that hard to find; I assume you are trying to build your own downloader and not use one that is already out there.
Also on another note if you could somehow get a link to a videos source file. I am sure youtube has permissions blocked access on all folders and files on their backend for security measures; only allowing those files to be forwarded and displayed on the actual player page. And if you think embedded videos would somehow work they still just make a request to youtube which youtube then gives back video-feed-data so there still is no direct connection to the file.
You should use the player API https://developers.google.com/youtube/js_api_reference#Retrieving_video_information
player.getVideoUrl():String
Returns the YouTube.com URL for the currently loaded/playing video.
I have written a simple python code that can fetch youtube href from html code.
hope it can help you:
#!/usr/bin/env python
import re
pattern = '.*<(iframe|param).*(src|value)="(?P<link>http://www.youtube.com/(embed|v)/[a-zA-Z0-9/\.\?&;=\+_-]+);?.*".*>.*</(iframe|param)>.*'
action = re.compile(pattern)
result = action.findall('<div><iframe.....></iframe><param......></param></div>')
print result
https://gist.github.com/Mortezaipo/5707738