Method | Description | |
---|---|---|
__construct ( |
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. |
Method | Description | |
---|---|---|
addOptionsToRtmpProcess ( Symfony\Component\Process\ProcessBuilder $builder, object $video ) : Symfony\Component\Process\ProcessBuilder | Add options to a process builder running rtmp. | |
getCurlProcess ( object $video ) : |
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 ) : |
Get a process that runs rtmp in order to download a video. |
public __construct ( |
||
$config |
public getAudioStream ( string $url, string $format ) : resource | ||
$url | string | URL of page |
$format | string | Format to use for the video |
return | resource | popen stream |
public listExtractors ( ) : string[] | ||
return | string[] | Extractors |