p4a.videoembed Package Readme
=============================
Overview
--------
A registry and adapters for converting urls for various video sharing sites
into embed codes.
This package provides some functions and zope3 components for converting urls
from common streaming video sites into embed codes. The purpose is to allow
for content types that provide a user entered url to display embeded video
based on that url. This is to avoid allowing users to enter raw html embed
codes which is potentially dangerous and cumbersome. It also allows for
dynamic scaling of the generated embed code to fit with your page layout.
Components
----------
At the heart of this product is a set of named adapters. These adapters adapt
a string (url) and an integer (width) and return a unicode embed code.
Currently, adapters are provided for the following video sharing sites:
YouTube
Google Video
Yahoo Video
Revver (both the original site and one.revver.com)
Vimeo
Vmix
Blip.tv
iFilm
MySpace
MetaCafe
But adding more is as simple as creating a function that checks if the url
is appropriate for the site you want, and another to convert it into an
embed code. You register the latter function as a named adapter, like: