Currently when I click on add youtube video, I see two vertical tabs at admin/content/media/add/media_youtube:

1> See All youtube videos
2> Add from url.

I think it would make sense to have video search which would return results from API (? haven't looked at code) for a keyword much like search on youtube.com.

Also another common use case for content creators is to allow them to fetch all videos from a particular username (in most cases it would be their own username) as many would know the username of the video uploader.

I think these 2 use cases should be incorporated (what do you think?) and I will look at code to get started on this, but currently I am trying to figure out #717704, it would also make sense to give the same functionality in wysiwyg media browser.

Once done on youtube, it would also make sense to incorporate both use cases on media flickr wrapper.

Comments

aaron’s picture

yes! absolutely! it's been a goal all along to get this functionality in place.

aaron’s picture

basically, we can use media_parse_to_uri($url) to return a URI, that can be used to display thumbnails. when we're ready to save a youtube stream, you can similarly use media_parse_to_file($url), which will take care of all the saving business and return a file object. (and if it's already in the system, it just returns the proper file rather than saving a new object).

RobW’s picture

Title: Browse videos by username and video search » YouTube Tab: Browse videos by username
Version: 7.x-1.x-dev » 7.x-2.x-dev

Video search has been added since this issue was posted. Search by username is still a great feature request for the YouTube tab. Added to #1776854: [Meta] YouTube Tab issue collection and roadmap.