src/Video/Video.php
public function embedCodeFor(string $url)
    {
        if (!$parsedUrl = $this->embedder->parseUrl($url)) {
            return null;
        }

        return $parsedUrl->getEmbedCode();
    }
public function embedCodeFor(string $url)
    {
        if (!$parsedUrl = $this->embedder->parseUrl($url)) {
            return null;
        }

        return $parsedUrl->getEmbedCode();
    }
public function embedCodeFor ( string $ url ) { if ( ! $ parsedUrl = $ this -> embedder -> parseUrl ( $ url ) ) { return null ; } return $ parsedUrl -> getEmbedCode ( ) ; }
Get the embed code for almost any hosted video service simply by peroviding its URL

@param string $url
@return string
Get the embed code for almost any hosted video service simply by peroviding its URL