PHP Класс Alltube\VideoDownload

PHP Version 5.3.10
Автор: Pierre Rudloff ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Config $config = null ) VideoDownload constructor.
getAudioFilename ( string $url, string $format = null ) : string Get filename of audio from URL of page.
getAudioStream ( string $url, string $format ) : resource Get audio stream of converted video.
getFilename ( string $url, string $format = null ) : string Get filename of video file from URL of page.
getJSON ( string $url, string $format = null ) : object Get all information about a video.
getURL ( string $url, string $format = null ) : string Get URL of video from URL of page.
listExtractors ( ) : string[] List all extractors.

Приватные методы

Метод Описание
addOptionsToRtmpProcess ( Symfony\Component\Process\ProcessBuilder $builder, object $video ) : Symfony\Component\Process\ProcessBuilder Add options to a process builder running rtmp.
getCurlProcess ( object $video ) : Process Get a process that runs curl in order to download a video.
getProp ( string $url, string $format = null, string $prop = 'dump-json' ) : string Get a property from youtube-dl.
getRtmpProcess ( object $video ) : Process Get a process that runs rtmp in order to download a video.

Описание методов

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

VideoDownload constructor.
public __construct ( Config $config = null )
$config Config

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

Get filename of audio from URL of page.
public getAudioFilename ( string $url, string $format = null ) : string
$url string URL of page
$format string Format to use for the video
Результат string Filename of converted audio file

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

Get audio stream of converted video.
public getAudioStream ( string $url, string $format ) : resource
$url string URL of page
$format string Format to use for the video
Результат resource popen stream

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

Get filename of video file from URL of page.
public getFilename ( string $url, string $format = null ) : string
$url string URL of page
$format string Format to use for the video
Результат string Filename of extracted video

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

Get all information about a video.
public getJSON ( string $url, string $format = null ) : object
$url string URL of page
$format string Format to use for the video
Результат object Decoded JSON

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

Get URL of video from URL of page.
public getURL ( string $url, string $format = null ) : string
$url string URL of page
$format string Format to use for the video
Результат string URL of video

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

List all extractors.
public listExtractors ( ) : string[]
Результат string[] Extractors