Missing doc

This commit is contained in:
Pierre Rudloff 2016-12-26 15:58:07 +01:00
parent e54df9b531
commit 20820d90f0
2 changed files with 16 additions and 2 deletions

View file

@ -293,6 +293,13 @@ class VideoDownload
return popen($chain->getProcess()->getCommandLine(), 'r');
}
/**
* Get video stream from an M3U playlist.
*
* @param \stdClass $video Video object returned by getJSON
*
* @return resource popen stream
*/
public function getM3uStream(\stdClass $video)
{
if (!shell_exec('which '.$this->config->avconv)) {
@ -312,8 +319,6 @@ class VideoDownload
]
);
//dump($procBuilder->getProcess()->getCommandLine()); die;
return popen($procBuilder->getProcess()->getCommandLine(), 'r');
}
}