Embed PeerTube video on XenForo post

Gytis

Administrator
Staff member
Trying out embedding of PeerTube video on XenForo community platform using oEmbed.

Can paste either URL to a video like this:
Code:
https://video.gyt.is/w/6e7H8WAk6DDPvDEndpT2mX

Which will be rendered into:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


Or use Media button in rich-text editor, which will generate BB code:
Code:
[MEDIA=inretiovideo]pmLV2NZ9QBhNRzeWJ1JvmY[/MEDIA]

That is rendered into:

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.


Configuration of External media embeds is described in XenForo documentation, however, important parameters are in oEmbed Options:
  • oEmbed API endpoint: https://video.gyt.is/services/oembed
  • oEmbed URL scheme: https://video.gyt.is/w/{$id}
Here https://video.gyt.is/ is PeerTube server URL.

No need to mess around with embed code (divs, iframes, etc.) - all required details will be retrieved from oEmbed object 🤓

Note that embedded player will not be rendered until visitor accepts third-party cookies - a warning will be shown until then:
XebForo warning dialog to allow 3rd party cookies before embedded media is shown.
 
Back
Top