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