class videoLink extends wsHTML5Link
{
public $defaultZIndex = 50;
+ public $backgroundColor='#000000';
+
public static function addVideoJS($compiler)
{
return array_merge(['videoLink'], parent::getClasses());
}
+ public function getCSS()
+ {
+ $res= parent::getCSS();
+ $res.='background-color:'.$this->backgroundColor.';';
+ return $res;
+ }
+
public function getHTMLContent()
{
if (!CubeIT_Util_Url::isDistant($this->to)) {
// preview frame for local files or set to 1280 x 720 for web videos.
// The $w and $h variables here seem to be null generally...
- return $this->makeVideoTag($this, $w, $h, $this->compiler);
+ return self::makeVideoTag($this, $w, $h, $this->compiler);
}
public static function makeVideoTag($linkDatas, $w = null, $h = null, $compiler = null)
static::addVideoJS($compiler);
$attributes = static::getVideoAttributes($linkDatas, $w, $h, $compiler);
+ $linkDatas->backgroundColor=$attributes['backgroundcolor'];
$res = '<div class="videoContainer integration-' . $linkDatas->inline . '"';
foreach ($attributes as $name => $value) {