Skip to main content


HumHub provides an option for adding of additional OEmbed providers or override existing one. Advanced OEmbed providers can be configured, by setting up event listener in your module config.php:

Catching an Event

Example event section of the config.php file:

'events' => [
'class' => \humhub\models\UrlOembed::class,
'event' => \humhub\models\UrlOembed::FETCH,
'callback' => [Events::class, 'onFetchOembed'],


Example of event callback:

public static function onFetchOembed($event)
'' => ''