Posted by soinno on May 21, 2009 at 6:04am
Jump to:
| Project: | Embedded Media Field |
| Version: | 6.x-1.9 |
| Component: | Embedded Video Field |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
I would like to be able to retrieve the video title from youtube and display it, how do I do that?
Comments
#1
i have the same request. i can display an emvideo in my view no problem, but i want to also display the title of the video (as a field), pulled from youtube. possible?
#2
it's technically possible, though not easy. fyi, the title of the original youtube video is stored in the field's data array, under the raw/'http://www.w3.org/2005/Atom'/TITLE/0 element, so you could display it in your theme, for instance, with
<?phpprint check_plain($node->field_video[0]['data']['raw']['http://www.w3.org/2005/Atom']['TITLE'][0]);
?>
YouTube, Blip.TV, and possible Archive.org are currently the only providers fetching this data. It might be worth storing and displaying this metadata on a more general level. (The original author, perhaps, as well.) Similar to how we now grab the duration when available.
Patches are welcome.
#3
Maybe some token assignment in order to use this info in conjunction with auto_nodetitle?
I'd also like to explore the same concept with ratings. Title and Rating can be displayed within the player, but it would be nice to have this assigned to fields or just it's own metadata in general to use elsewhere. (just thinking aloud) Then I could explore a fivestar integration as well.
#4
I would also like this, sirkitree.
#5
subscribe