public function getIframeURL()
    {
        $info = $this->parseLink();
        if (!$info) {
            return false;
        }

        $params = $this->Config()->get('service');

        if ($this->Service == 'Vimeo') {
            $url = 'https://player.vimeo.com/video/' . $this->VideoID;
            if ($params && !empty($params[strtolower($this->Service)])) {
                $url .= '?' . http_build_query($params[strtolower($this->Service)], '', '&');
            }
            return $url;
        }
        if ($this->Service == 'YouTube') {
            $url = 'https://www.youtube.com/embed/' . $this->VideoID;
            if ($params && !empty($params[strtolower($this->Service)])) {
                $url .= '?' . http_build_query($params[strtolower($this->Service)], '', '&');
            }
            return $url;
        }
    }
public function getIframeURL()
    {
        $info = $this->parseLink();
        if (!$info) {
            return false;
        }

        $params = $this->Config()->get('service');

        if ($this->Service == 'Vimeo') {
            $url = 'https://player.vimeo.com/video/' . $this->VideoID;
            if ($params && !empty($params[strtolower($this->Service)])) {
                $url .= '?' . http_build_query($params[strtolower($this->Service)], '', '&');
            }
            return $url;
        }
        if ($this->Service == 'YouTube') {
            $url = 'https://www.youtube.com/embed/' . $this->VideoID;
            if ($params && !empty($params[strtolower($this->Service)])) {
                $url .= '?' . http_build_query($params[strtolower($this->Service)], '', '&');
            }
            return $url;
        }
    }
public function getIframeURL ( ) { $ info = $ this -> parseLink ( ) ; if ( ! $ info ) { return false ; } $ params = $ this -> Config ( ) -> get ( 'service' ) ; if ( $ this -> Service == 'Vimeo' ) { $ url = 'https://player.vimeo.com/video/' . $ this -> VideoID ; if ( $ params && ! empty ( $ params [ strtolower ( $ this -> Service ) ] ) ) { $ url .= '?' . http_build_query ( $ params [ strtolower ( $ this -> Service ) ] , '' , '&' ) ; } return $ url ; } if ( $ this -> Service == 'YouTube' ) { $ url = 'https://www.youtube.com/embed/' . $ this -> VideoID ; if ( $ params && ! empty ( $ params [ strtolower ( $ this -> Service ) ] ) ) { $ url .= '?' . http_build_query ( $ params [ strtolower ( $ this -> Service ) ] , '' , '&' ) ; } return $ url ; } }
Return the iframe URL

@param  Null
@return String
Return the iframe URL