Actions
Bug #31661
closedVimeo Mediawizardprovider stopped working
Start date:
2011-11-08
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Vimeo changed its behaviour and no videos are shown anymore.
The change is pretty strange as moving the clip_id to the 1st place is all what is needed
How to test:
- Use any vimeo URL, e.g.: http://vimeo.com/31078875
- Either use e.g. EXT:news or build some code like this and place it somewhere in the FE (e.g. into an extension)
$finalUrl = '';
$url = 'http://vimeo.com/31078875';
$mediaWizard = tslib_mediaWizardManager::getValidMediaWizardProvider($url);
if ($mediaWizard !== NULL) {
$finalUrl = $mediaWizard->rewriteUrl($url);
}
$content = '<div id="abc123"></div>
<script type="text/javascript">
var params = { allowScriptAccess: "always" };
var atts = { id: "abc123" };
swfobject.embedSWF("' . htmlspecialchars($finalUrl) . '",
"' . $uniqueDivId . '", "600", "400", "8", null, null, params, atts);
</script>';
echo $content;
Actions