[TASK] Move video-js to contrib
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / FlowPlayerContentObject.php
index c87cb81..fe67c70 100644 (file)
@@ -230,8 +230,8 @@ class FlowPlayerContentObject extends \TYPO3\CMS\Frontend\ContentObject\Abstract
                // Add videoJS css-file
                $GLOBALS['TSFE']->getPageRenderer()->addCssFile(TYPO3_mainDir . 'contrib/videojs/video-js/video-js.css');
                // Add extended videoJS control bar
-               $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . '../t3lib/js/videojs/control-bar.js');
-               $GLOBALS['TSFE']->getPageRenderer()->addCssFile(TYPO3_mainDir . '../t3lib/js/videojs/control-bar.css');
+               $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/videojs/video-js/controls/control-bar.js');
+               $GLOBALS['TSFE']->getPageRenderer()->addCssFile(TYPO3_mainDir . 'contrib/videojs/video-js/controls/control-bar.css');
                // Build Flash configuration
                $player = isset($typeConf['player.']) ? $this->cObj->stdWrap($typeConf['player'], $typeConf['player.']) : $typeConf['player'];
                if (!$player) {
@@ -346,7 +346,7 @@ class FlowPlayerContentObject extends \TYPO3\CMS\Frontend\ContentObject\Abstract
                        // Assemble captions track tag
                        $videoCaptions = '<track id="' . $replaceElementIdString . '_captions_track" kind="captions" src="' . $conf['caption'] . '"></track>' . LF;
                        // Add videoJS extension for captions
-                       $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . '../t3lib/js/videojs/captions.js');
+                       $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/videojs/video-js/controls/captions.js');
                        // Flowplayer captions
                        $conf['videoflashvars']['captionUrl'] = $conf['caption'];
                        // Flowplayer captions plugin configuration
@@ -360,7 +360,7 @@ class FlowPlayerContentObject extends \TYPO3\CMS\Frontend\ContentObject\Abstract
                if ($conf['type'] == 'video') {
                        if (is_array($conf['audioSources']) && count($conf['audioSources'])) {
                                // Add videoJS audio description toggle
-                               $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . '../t3lib/js/videojs/audio-description.js');
+                               $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/videojs/video-js/controls/audio-description.js');
                        }
                        if (isset($conf['audioFallback'])) {
                                // Audio description flowplayer config (remove controls)
@@ -717,4 +717,4 @@ class FlowPlayerContentObject extends \TYPO3\CMS\Frontend\ContentObject\Abstract
 }
 
 
-?>
\ No newline at end of file
+?>