mirror of
https://github.com/koel/koel
synced 2025-01-05 09:18:51 +00:00
24 lines
468 B
PHP
24 lines
468 B
PHP
<?php
|
|
|
|
namespace App\Services\Streamers;
|
|
|
|
use App\Models\Song;
|
|
|
|
abstract class Streamer
|
|
{
|
|
protected ?Song $song = null;
|
|
protected ?string $contentType = null;
|
|
|
|
public function __construct()
|
|
{
|
|
// Turn off error reporting to make sure our stream isn't interfered.
|
|
@error_reporting(0);
|
|
}
|
|
|
|
public function setSong(Song $song): void
|
|
{
|
|
$this->song = $song;
|
|
}
|
|
|
|
abstract public function stream(); // @phpcs:ignore
|
|
}
|