[TYPO3-core] RFC: #15699: Provide a wizard for media to process the video url
Steffen Kamper
info at sk-typo3.de
Mon Sep 13 19:12:34 CEST 2010
Hi,
this is a SVN patch request.
Type: Feature
BT Reference: http://bugs.typo3.org/view.php?id=15699
Branches: trunk
If you want to insert a media video from a video-portal like youtube you
have to use a special syntax for the url which delivers the video only.
This can be very tricky and complicate, os provide a wizard for this.
The effort is clear: you simply use the url from browser and the wizard
computes the correct syntax.
The following patch is a result from GSoC 2010 from the project i
mentored, and the wizard is the finished part.
Code is done by Aishwara M.B. from India, i did CGL cleanup and helped
with mentoring.
The wizard supports following video sites:
youtube, dailymotion, sevenload, vimeo, clipfish, google video,
metacafe, myvideo, liveleak and veoh
You can register own provider to support other portals you want to use.
You register your provider this way:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_mediawizard.php']['mediaProvider']['myProvider']
= 'classname';
In your class you need a function
function process_myProvider($url)
which returns he computed url.
How to test:
apply the patch, create a media content element, use browser url for the
video url.
vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15699.diff
Type: text/x-patch
Size: 10549 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100913/b76a51a7/attachment.bin>
More information about the TYPO3-team-core
mailing list