AthenaTennos Using the extension's own bootstrap as a template, here's what I'd use:
namespace AthenaTennos\Tucao;
use Flarum\Event\ConfigureFormatter;
use Illuminate\Events\Dispatcher;
function subscribe(Dispatcher $events)
{
$events->listen(
ConfigureFormatter::class,
function (ConfigureFormatter $event)
{
$event->configurator->MediaEmbed->add(
'tucao',
[
'host' => 'tucao.tv',
'extract' => "!tucao\\.tv/play/h(?'id'[-0-9A-Z_a-z]+)!",
'iframe' => ['src' => 'http://www.tucao.tv/mini/{@id}.swf']
]
);
}
);
};
return __NAMESPACE__ . '\\subscribe';
In this example I omitted the iframe's dimensions, which will default to 640 × 360. Of course if you prefer it to be smaller you can use the same dimensions as your previous example.