public function getEmbedCode($url, $class)
    {
        // Prepare url
        $url = $this->setProtocolToHttps($url);
        // Get method
        $method = $this->getMethod($url);
        if ($method !== null) {
            $embedUrl = $this->{$method}($url);
            if ($embedUrl) {
                return '<iframe ' . GeneralUtility::implodeAttributes([
                        'class' => $class,
                        'src' => $embedUrl,
                        'frameborder' => 0
                    ], true) . ' allowfullscreen></iframe>';
            }
        }
        return null;
    }