public function getTitle()
    {
        if ($this->getService() == 'YouTube') {
            $data = $this->getCachedJsonResponse(
                'https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' .
                $this->VideoID .
                '&format=json'
            );
            if ($data && !empty($data['title'])) {
                return $data['title'];
            }
        }
        if ($this->getService() == 'Vimeo') {
            $data = $this->getCachedJsonResponse(
                'https://vimeo.com/api/v2/video/' . $this->VideoID . '.json'
            );
            if ($data && !empty($data[0]) && !empty($data[0]['title'])) {
                return $data[0]['title'];
            }
        }
    }
public function getTitle()
    {
        if ($this->getService() == 'YouTube') {
            $data = $this->getCachedJsonResponse(
                'https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' .
                $this->VideoID .
                '&format=json'
            );
            if ($data && !empty($data['title'])) {
                return $data['title'];
            }
        }
        if ($this->getService() == 'Vimeo') {
            $data = $this->getCachedJsonResponse(
                'https://vimeo.com/api/v2/video/' . $this->VideoID . '.json'
            );
            if ($data && !empty($data[0]) && !empty($data[0]['title'])) {
                return $data[0]['title'];
            }
        }
    }
public function getTitle ( ) { if ( $ this -> getService ( ) == 'YouTube' ) { $ data = $ this -> getCachedJsonResponse ( 'https://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=' . $ this -> VideoID . '&format=json' ) ; if ( $ data && ! empty ( $ data [ 'title' ] ) ) { return $ data [ 'title' ] ; } } if ( $ this -> getService ( ) == 'Vimeo' ) { $ data = $ this -> getCachedJsonResponse ( 'https://vimeo.com/api/v2/video/' . $ this -> VideoID . '.json' ) ; if ( $ data && ! empty ( $ data [ 0 ] ) && ! empty ( $ data [ 0 ] [ 'title' ] ) ) { return $ data [ 0 ] [ 'title' ] ; } } }
Scrape Video information from hosting sites
@param  Null
@return String
Scrape Video information from hosting sites