$w = round($this->width * $this->getCssScale());
$h = round($this->height * $this->getCssScale());
- return self::makeAudioTag($this, $w, $h, $this->compiler);
+ $attrs = $this->getTooltipAttribute();
+
+ return self::makeAudioTag($this, $w, $h, $this->compiler, null, $attrs);
}
protected function _getCSSContainer()
* @param Compiler $compiler
* @return string
*/
- public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null, $theme = null)
+ public static function makeAudioTag($linkDatas, $w = null, $h = null, $compiler = null, $theme = null, $attrs = '')
{
$theme = $theme === null || $theme === 'inline' ? $compiler->getSetting('audioPlayerTheme') : $theme;
$controls = '';
}
$res .= ' src="' . self::getUniversalLocation($linkDatas->to) . '"';
$res .= '></audio>';
- $res .= '<div class="visualPlayer"></div>';
+ $res .= '<div class="visualPlayer" ' . $attrs . '></div>';
return $res;
}
+
}