/**
* Fetches informations about the given URL.
*
* @todo Error reporting.
* @param string $url URL to fetch informations from.
* @param array $options Custom options to be interpreted by a provider.
* @return Essence\Media Embed informations.
*/
public function extract($url, array $options = [])
{
$providers = $this->_Collection->providers($url);
foreach ($providers as $Provider) {
try {
return $Provider->extract($url, $options);
} catch (Exception $Exception) {
// ...
}
}
return null;
}