예제 #1
0
 public static function embed($Media, $autoplay)
 {
     $Multiplayer = new Multiplayer();
     $defaults = array('autoPlay' => $autoplay or c::get('oembed.lazyvideo', false), 'showInfos' => false, 'showBranding' => false, 'showRelated' => false);
     $embed = $Multiplayer->html($Media->get('url'), $defaults);
     if (c::get('oembed.lazyvideo', false)) {
         $embed = str_replace(' src="', ' data-src="', $embed);
     }
     return $embed;
 }
예제 #2
0
 public function __construct($config = array())
 {
     if (!is_array($config)) {
         $config = array();
     }
     parent::__construct($config);
 }