koel/app/Services/Streamer/Adapters/PhpStreamerAdapter.php

17 lines
364 B
PHP
Raw Normal View History

2015-12-13 04:42:28 +00:00
<?php
2024-02-24 07:28:49 +00:00
namespace App\Services\Streamer\Adapters;
2015-12-13 04:42:28 +00:00
2024-02-24 07:28:49 +00:00
use App\Models\Song;
2024-04-26 13:35:26 +00:00
use App\Services\Streamer\Adapters\Concerns\StreamsLocalPath;
2020-12-22 20:11:22 +00:00
2024-02-24 07:28:49 +00:00
class PhpStreamerAdapter extends LocalStreamerAdapter
2015-12-13 04:42:28 +00:00
{
2024-04-26 13:35:26 +00:00
use StreamsLocalPath;
2024-02-24 07:28:49 +00:00
public function stream(Song $song, array $config = []): void
2015-12-13 04:42:28 +00:00
{
2024-04-26 13:35:26 +00:00
$this->streamLocalPath($song->storage_metadata->getPath());
2015-12-13 04:42:28 +00:00
}
}