Replies: 1 comment
-
PeerTube is a software rather than a specific site, so you'd have to either add each instance individually or have a Since you're asking about phpBB specifically, your best option would be to look into creating your own I'll leave this PHP implementation as an example. $configurator = new s9e\TextFormatter\Configurator;
$configurator->MediaEmbed->add(
'diodezone',
[
'host' => 'diode.zone',
'extract' => '#/(?:videos/embed|w)/(?<id>[-\\w]+)#',
'iframe' => ['src' => 'https://diode.zone/videos/embed/{@id}']
]
);
extract($configurator->finalize());
$text = 'https://diode.zone/w/df9591cb-7574-40ad-bdb5-eb06c555fb4e';
$xml = $parser->parse($text);
$html = $renderer->render($xml);
die("$html\n"); <span data-s9e-mediaembed="diodezone" style="display:inline-block;width:100%;max-width:640px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:56.25%"><iframe allowfullscreen="" loading="lazy" scrolling="no" src="https://diode.zone/videos/embed/df9591cb-7574-40ad-bdb5-eb06c555fb4e" style="border:0;height:100%;left:0;position:absolute;width:100%"></iframe></span></span> |
Beta Was this translation helpful? Give feedback.
-
Is this the right place to request PeerTube support? Would like to be able to embed PeerTube videos.
Beta Was this translation helpful? Give feedback.
All reactions