<?php

declare(strict_types=1);

namespace App\Actions\Http\Wiki\Video;

use App\Actions\Http\NginxStreamAction;
use App\Constants\Config\VideoConstants;
use App\Models\Wiki\Video;
use Illuminate\Support\Facades\Config;

class VideoNginxStreamAction extends NginxStreamAction
{
    public function __construct(Video $video)
    {
        parent::__construct($video);
    }

    public function disk(): string
    {
        return Config::get(VideoConstants::DEFAULT_DISK_QUALIFIED);
    }

    /**
     * Get the location of the nginx internal redirect.
     */
    protected function nginxRedirect(): string
    {
        return Config::get(VideoConstants::NGINX_REDIRECT_QUALIFIED);
    }
}
