Issue Bug Closed

#31661Vimeo Mediawizardprovider stopped working

Georg Ringer 11/08/11, 08:57 updated 10/02/18, 12:19

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;

Reviews 3