mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +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());
|
|
}
|
|
}
|