parent
4db519c2ef
commit
70475f83d4
3 changed files with 38 additions and 5 deletions
29
classes/ConvertedPlaylistArchiveStream.php
Normal file
29
classes/ConvertedPlaylistArchiveStream.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?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
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue