xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
400 stars 42 forks source link

Embedding owncast video #229

Closed roughnecks closed 10 months ago

roughnecks commented 10 months ago

Hi,

I tried embedding an owncast video in a page with "Easy Embed" extension, using the link http://your.host/embed/video, but it's not working.

I followed here: https://owncast.online/docs/embed/?source=admin

Any way I can add that, even by using html?

Thanks

roughnecks commented 10 months ago

Not sure if I should see the video interface when not actually streaming, in that case I will check later on.

xenocrat commented 10 months ago

Hello there,

Easy Embed is able to support a few well-known services that use the same content ID for their direct links and embeds, by translating, for example, youtube.com/watch?v=[video ID] into www.youtube.com/embed/[video ID]. Easy Embed currently supports YouTube, Vimeo, Twitch, and Archive.org.

For Owncast, you would use the code snippet on that documentation page:

<iframe
  src="https://your.host/embed/video"
  title="Owncast"
  height="350px" width="550px"
  referrerpolicy="origin"
  allowfullscreen>
</iframe>
roughnecks commented 10 months ago

OK, but how I do I use that code in a page?

roughnecks commented 10 months ago

I added <html> and <body> tags and now it shows, if that's the right way.. Also I had to modify the iframe css to exclude the "height: auto;" rule, otherwise I would get a scrollbar.

roughnecks commented 10 months ago

Also thanks :)