public function getConfigHTML($d, $html)
{
+
+ $c = file_get_contents($this->wdir . $html);
$res = array('width' => $this->video_width, 'height' => $this->video_height);
+ if (stristr($c, '<div id="lottie"></div>')) {
+ if (preg_match('/var animationData = (\{.*\})/', $c, $m)) {
+ $ad = json_decode(trim($m[1]), true);
+ $res['width'] = $ad['w'];
+ $res['height'] = $ad['h'];
+ }
+ }
$r = array('type' => 'html', 'html' => $html, 'inject' => array(), 'injectcss' => array(), 'injectjs' => array());
return array_merge($res, $r);