Learner\Services\Videos\Youku::getVideoDetail PHP Метод

getVideoDetail() публичный Метод

Get the video detail.
public getVideoDetail ( string $id ) : array
$id string
Результат array
    public function getVideoDetail($id)
    {
        $this->setId($id);
        $data = $this->getData(str_replace('{key}', config('video.youku_key'), $this->baseUrl));
        if (!$data) {
            throw new VideoNotFoundException("video_not_found");
        }
        return ['title' => $data->title, 'description' => $data->description, 'duration' => intval($data->duration), 'upload_date' => $data->published, 'thumbnail_url' => $data->thumbnail];
    }