alltube/classes/ConvertedPlaylistArchiveStream.php
2019-04-21 22:56:43 +02:00

29 lines
621 B
PHP

<?php
/**
* ConvertedPlaylistArchiveStream class.
*/
namespace Alltube;
use Slim\Http\Stream;
class ConvertedPlaylistArchiveStream extends PlaylistArchiveStream
{
/**
* Start streaming a new video.
*
* @param Video $video Video to stream
*
* @return void
*/
protected function startVideoStream(Video $video)
{
$this->curVideoStream = new Stream($video->getAudioStream());
$this->init_file_stream_transfer(
$video->getFileNameWithExtension('mp3'),
// The ZIP format does not care about the file size.
0
);
}
}