MBKD :: Video and Audio
Copyright © by Markus Brunner, Katja Deutschmann <mail@markusbrunner-design.de, katja.deutschmann@gmx.de>Published under the Open Content License available from http://www.opencontent.org/opl.shtml
Table Of Contents
- 1. EXT: Video-Extension HTML5-Video/Audio Flash-Video/Audio
- 1.1. Extension Key: mbkdvideo
- 1.2. Language: en
- 1.3. Keywords: Video, HTML5-Video, HTML5-Audio, Flash-Video, Flash-Audio, Flash-Fallback
- 1.4. Copyright 2000-2008, Markus Brunner, Katja Deutschmann, <mail@markusbrunner-design.de, katja.deutschmann@gmx.de>
- 1.5. Read online
- 1.6. This document is published under the Open Content License
- 1.7. available from http://www.opencontent.org/opl.shtml
- 1.8. Read online
- 1.9. The content of this document is related to TYPO3
- 1.10. - a GNU/GPL CMS/Framework available from www.typo3.org
- 1.11. Read online
- 1.12. Introduction
- 1.13. Users manual
- 1.14. Administration
- 1.15. Read online
- 1.16. Configuration
- At first include the static TypoScript-File “MBKD :: Video Std.” into your Main Template, or alternatively add all TypoScript-Setup of this file (EXT:mbkdvideo/static/setup.txt) directly into your TS-Setup:
- Read online
- Read online
- TypoScript
- Extensionaccess
- If you want to include this extension as a developer directly into your own extension, you can do this via some specific TypoScript-Setup, PHP and Flexform-XML only used for this purpose (see mbprojects for an integration-example).
- Flexform: you can copy the flexform of mbkdvideo, to get all input possibilities of the extension → EXT:mbkdvideo/flexform.xml – for getting the flexform initialized, you have to add some lines to your extension's ext_tables.php:
- Read online
- /*
- * Flexform integration
- */
- $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1'] ='pi_flexform';
- t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1', 'FILE:EXT:'.$_EXTKEY . '/flexform.xml');
- Read online
- PHP: her is a method out of mbprojects you can use 1:1 for integration in your own extension; fill the method with infos out of flexform:
- Read online
- protected function _getExternalMBKDVideo($extKey, $uploadPath = '', $videofiles = '', $width = 400, $height = 300, $showVideo = true) {$content = '';// include mbkdvideo Extensionif(t3lib_extMgm::isLoaded('mbkdvideo') && $showVideo) {// get mbkdvideo-objectinclude_once(t3lib_extMgm::extPath('mbkdvideo').'pi1/class.tx_mbkdvideo_pi1.php');$videoObj = t3lib_div::makeInstance('tx_mbkdvideo_pi1');$videoObj->cObj = t3lib_div::makeInstance('tslib_cObj');// get TypoScript of extension$videoObjSetup = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_mbkdvideo_pi1.'];// overwrite extension-TypoScript with external extension vars$videoObjSetup['extensionaccess'] = 1;if(is_array($this->conf['mbkdvideo.'])) {foreach($this->conf['mbkdvideo.'] AS $key => $value) {$videoObjSetup['extensionaccess.'][$key] = $value;}}// fill extension vars$videoObjSetup['extensionaccess.']['uploadPath'] = $uploadPath;$videoObjSetup['extensionaccess.']['files'] = $videofiles;$videoObjSetup['extensionaccess.']['width'] = $width;$videoObjSetup['extensionaccess.']['height'] = $height;$videoObjSetup['extensionaccess.']['displaySwitch'] = 'html5video';$videoObjSetup['extensionaccess.']['html5controls'] = '1';$videoObjSetup['extensionaccess.']['html5preload'] = 'none';// get video-html-content$content = $videoObj->main("", $videoObjSetup);}return $content;}
- Include the extension-TypoScript-Setup directly into your TypoScript-Setup (alternative to static TypoScript-Setup-File)
- 1.17. Known problems
- 1.18. Read online
- 1.19. ChangeLog
- 1.20. Read online
This document is related to version 1.0.3 of the extension mbkdvideo.