IndyIndyIndy / youku

Youku Online Media Service for TYPO3
Other
1 stars 7 forks source link

TYPO3 >9.5 #6

Open webdev2027 opened 1 year ago

webdev2027 commented 1 year ago

Are they plans for newer TYPO3 versions like v10 or v11? Propably v12? Thanks.

webdev2027 commented 1 year ago

I already install this extension at TYPO3 v10 Change typo3conf/ext/youku/ext_emconf.php L28 'typo3' => '8.7.0-10.4.99', Change typo3conf/ext/youku/ext_localconf.php to

call_user_func(
    function () {
        // Register file extension "youku"
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'] .= ',youku';

        // Register the online media helper
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['onlineMediaHelpers']['youku']
            = \ChristianEssl\Youku\Resource\OnlineMedia\Helpers\YoukuHelper::class;

        // Register the mime type
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']['youku'] = 'video/youku';

        // Register the renderer for the frontend
        $rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
        $rendererRegistry->registerRendererClass(\ChristianEssl\Youku\Resource\Rendering\YoukuRenderer::class);
    },
    'youku'
);

Install Extension and Dump Autoload and it works with TYPO3 v10. But I'm not an PHP-Developer. It will be nice to upload a newer version for TYPO3 10-12. Thanks!