class CubeIT_View_Helper_VideoGeneric extends CubeIT_View_Helper_VideoWebIframe {
public function videoGeneric($videoId, $width = "100%", $ratio = 'auto', $options = array(), $attributes = array()) {
- $url = CubeIT_Util_WebVideo::getIframeUrl('generic', $videoId, $options);
+ $url = $videoId;
if (!$url) {
return;
}
if ($strict) {
return false;
}
- return $this->videoWebIframe($url, $width, $ratio, $options, $attributes);
+ return $this->videoHtml5($url, $width, $ratio, $options, $attributes);
} else {
list($service, $videoId) = explode(':', $urlf);
+ if(!$videoId){
+ $videoId = $service;
+ $service = 'html5';
+ }
if ($service === 'http' || $service === 'https') {
$service = 'generic';
$videoId = $urlf;