refactor: Move exceptions and streams to seperate namespaces

This commit is contained in:
Pierre Rudloff 2019-04-22 21:06:05 +02:00
parent 1a6ff90eac
commit e13404903b
11 changed files with 24 additions and 14 deletions

View file

@ -1,32 +0,0 @@
<?php
/**
* ConvertedPlaylistArchiveStream class.
*/
namespace Alltube;
use Slim\Http\Stream;
/**
* Class used to create a Zip archive from converted playlists entries.
*/
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
);
}
}