mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Refactor
This commit is contained in:
parent
9feaaf9476
commit
da5d0e22f3
1 changed files with 3 additions and 4 deletions
|
@ -7,7 +7,7 @@ use App\Models\Song;
|
|||
class TranscodingStreamer extends Streamer implements StreamerInterface
|
||||
{
|
||||
/**
|
||||
* Bitrate which the stream should be transcoded as.
|
||||
* Bitrate the stream should be transcoded at.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
|
@ -32,9 +32,8 @@ class TranscodingStreamer extends Streamer implements StreamerInterface
|
|||
*/
|
||||
public function stream()
|
||||
{
|
||||
if (!is_executable($ffmpeg = env('FFMPEG_PATH', '/usr/local/bin/ffmpeg'))) {
|
||||
abort(500, 'Transcoding requires valid ffmpeg settings.');
|
||||
}
|
||||
$ffmpeg = env('FFMPEG_PATH', '/usr/local/bin/ffmpeg');
|
||||
abort_unless(is_executable($ffmpeg), 500, 'Transcoding requires valid ffmpeg settings.');
|
||||
|
||||
$bitRate = filter_var($this->bitrate, FILTER_SANITIZE_NUMBER_INT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue