koel/app/Services/Streamer/Adapters/PhpStreamerAdapter.php
2024-07-06 17:45:02 +02:00

16 lines
364 B
PHP

<?php
namespace App\Services\Streamer\Adapters;
use App\Models\Song;
use App\Services\Streamer\Adapters\Concerns\StreamsLocalPath;
class PhpStreamerAdapter extends LocalStreamerAdapter
{
use StreamsLocalPath;
public function stream(Song $song, array $config = []): void
{
$this->streamLocalPath($song->storage_metadata->getPath());
}
}