-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MarkejN
committed
Jan 3, 2019
1 parent
b55ce5a
commit 5493411
Showing
14 changed files
with
330 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ manifest/tmp/ | |
symphony/ | ||
workspace/uploads/ | ||
install-log.txt | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* | ||
* Extension for Contao Open Source CMS (contao.org) | ||
* | ||
* Copyright (c) 2018-2019 POSTYOU | ||
* | ||
* @package | ||
* @author Markus Nestmann | ||
* @link http://www.postyou.de | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
namespace Postyou\ContaoABRStreamingBundle; | ||
|
||
class dashPlayerPlugin | ||
{ | ||
public function myParseFrontendTemplate($objTemplate) | ||
{ | ||
if ($objTemplate->getName() == 'js_mediaelement') | ||
{ | ||
if ($objTemplate->getName() == 'js_mediaelement') { | ||
$objTemplate->setName('js_mediaelement_dash'); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,39 @@ | ||
<?php | ||
|
||
/** | ||
* | ||
* Extension for Contao Open Source CMS (contao.org) | ||
* | ||
* Copyright (c) 2018-2019 POSTYOU | ||
* | ||
* @package | ||
* @author Markus Nestmann | ||
* @link http://www.postyou.de | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
array_push($GLOBALS['TL_DCA']['tl_content']['config']['onload_callback'], array('Postyou\ContaoABRStreamingBundle\tl_content', 'showJsLibraryHint')); | ||
|
||
// Add palette to tl_content | ||
$GLOBALS['TL_DCA']['tl_content']['palettes']['abrstreaming'] = '{type_legend},type,headline;{sources},abrs_playerSRC;{poster_legend:hide},posterSRC;{player_legend},abrs_playerSize,abrs_autoplay;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID;{invisible_legend:hide},invisible,start,stop'; | ||
|
||
// Add fields to tl_content | ||
$GLOBALS['TL_DCA']['tl_content']['fields']['abrs_playerSRC'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_content']['abrs_playerSRC'], | ||
'exclude' => true, | ||
'inputType' => 'fileTree', | ||
'eval' => array('filesOnly'=>true, 'multiple'=>true, 'fieldType'=>'checkbox', 'extensions' =>'mpd, m3u8, mp4, m4v, mov, wmv, webm, ogv', 'mandatory'=>true, 'tl_class'=>'clr autoheight'), | ||
'sql' => "blob NULL" | ||
$GLOBALS['TL_DCA']['tl_content']['fields']['abrs_playerSRC'] = array( | ||
'label' => &$GLOBALS['TL_LANG']['tl_content']['abrs_playerSRC'], | ||
'exclude' => true, | ||
'inputType' => 'fileTree', | ||
'eval' => array('filesOnly'=>true, 'multiple'=>true, 'fieldType'=>'checkbox', 'extensions' =>'mpd, m3u8, mp4, m4v, mov, wmv, webm, ogv', 'mandatory'=>true, 'tl_class'=>'clr autoheight'), | ||
'sql' => "blob NULL" | ||
); | ||
$GLOBALS['TL_DCA']['tl_content']['fields']['abrs_playerSize'] = array( | ||
'label' => &$GLOBALS['TL_LANG']['tl_content']['playerSize'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('multiple'=>true, 'size'=>2, 'rgxp'=>'natural', 'nospace'=>true, 'tl_class'=>'w50'), | ||
'sql' => "varchar(64) NOT NULL default ''" | ||
); | ||
$GLOBALS['TL_DCA']['tl_content']['fields']['abrs_playerSize'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_content']['playerSize'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => array('multiple'=>true, 'size'=>2, 'rgxp'=>'natural', 'nospace'=>true, 'tl_class'=>'w50'), | ||
'sql' => "varchar(64) NOT NULL default ''" | ||
$GLOBALS['TL_DCA']['tl_content']['fields']['abrs_autoplay'] = array( | ||
'label' => &$GLOBALS['TL_LANG']['tl_content']['autoplay'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'eval' => array('tl_class'=>'w50 m12'), | ||
'sql' => "char(1) NOT NULL default ''" | ||
); | ||
$GLOBALS['TL_DCA']['tl_content']['fields']['abrs_autoplay'] = array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_content']['autoplay'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'eval' => array('tl_class'=>'w50 m12'), | ||
'sql' => "char(1) NOT NULL default ''" | ||
); |
Oops, something went wrong.