mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
16 lines
408 B
PHP
16 lines
408 B
PHP
<?php
|
|
|
|
namespace App\Services\Streamers;
|
|
|
|
class S3Streamer extends Streamer implements ObjectStorageStreamerInterface
|
|
{
|
|
/**
|
|
* Stream the current song through S3.
|
|
* Actually, we only redirect to the S3 object's location.
|
|
*/
|
|
public function stream()
|
|
{
|
|
// Get and redirect to the actual presigned-url
|
|
return redirect($this->song->getObjectStoragePublicUrl());
|
|
}
|
|
}
|