mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
16 lines
364 B
PHP
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());
|
|
}
|
|
}
|