{
"info": {
"author": "Alec Mitchell",
"author_email": "apm13@columbia.edu",
"bugtrack_url": null,
"classifiers": [
"Framework :: Zope3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Topic :: Multimedia :: Video",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "p4a.videoembed Package Readme\n=============================\n\nOverview\n--------\n\nA registry and adapters for converting urls for various video sharing sites\ninto embed codes.\n\nThis package provides some functions and zope3 components for converting urls\nfrom common streaming video sites into embed codes. The purpose is to allow\nfor content types that provide a user entered url to display embeded video\nbased on that url. This is to avoid allowing users to enter raw html embed\ncodes which is potentially dangerous and cumbersome. It also allows for\ndynamic scaling of the generated embed code to fit with your page layout.\n\nComponents\n----------\n\nAt the heart of this product is a set of named adapters. These adapters adapt\na string (url) and an integer (width) and return a unicode embed code.\nCurrently, adapters are provided for the following video sharing sites:\n\n* YouTube http://www.youtube.com/\n* Google Video http://video.google.fr\n* Yahoo Video http://video.yahoo.com/\n* Revver (both http://revver.com and one.revver.com)\n* Vimeo http://vimeo.com\n* Vmix http://vmix.com\n* Blip.tv http://blip.tv\n* iFilm http://ifilm.com\n* MySpace http://vids.myspace.com\n* MetaCafe http://metacafe.com\n* College Humor http://collegehumor.com\n* Veoh http://veoh.com\n* flash video (.flv) using http://www.longtailvideo.com/players/jw-flv-player\n* (.mov .qt .m4v) ># The original revver QT embed\n* VH1 http://vh1.com\n* Live Leak http://liveleak.com\n* Video detective http://videodetective.com\n* Dailymotion http://www.dailymotion.com\n\nBut adding more is as simple as creating a function that checks if the url\nis appropriate for the site you want, and another to convert it into an\nembed code. You register the latter function as a named adapter, like:\n\n::\n\n