<?php

namespace App\VideoPlugins\Contracts;

use App\Models\VideoPlugin;

abstract class BaseVideoPlugin implements VideoPluginInterface
{
    public function getVersion(): string
    {
        return '1.0.0';
    }

    public function getAuthor(): string
    {
        return 'AutoDiag';
    }

    public function getConfigFields(): array
    {
        return [];
    }

    public function validateConfig(array $config): array
    {
        return $config;
    }

    public function isConfigured(VideoPlugin $plugin): bool
    {
        return false;
    }

    public function renderEmbed(VideoPlugin $plugin, string $url = ''): string
    {
        return '';
    }
}
