Make RTMP videos work in stream mode (fixes #104)

This commit is contained in:
Pierre Rudloff 2017-04-24 18:31:14 +02:00
parent d2ad962f6f
commit fb3834296a
4 changed files with 68 additions and 1 deletions

View file

@ -324,4 +324,16 @@ class VideoDownload
return popen($procBuilder->getProcess()->getCommandLine(), 'r');
}
/**
* Get video stream from an RTMP video.
*
* @param \stdClass $video Video object returned by getJSON
*
* @return resource popen stream
*/
public function getRtmpStream(\stdClass $video)
{
return popen($this->getRtmpProcess($video)->getCommandLine(), 'r');
}
}