Opened 6 years ago
Last modified 3 months ago
#46226 new feature request
PeerTube 'automatic' embed
Reported by: | haywardgb | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Embeds | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
Would it be possible to add support for automatic Peertube embeds, the same as YouTube embeds work. https://peertube.video/videos/watch/217eefeb-883d-45be-b7fc-a788ad8507d3
Change History (4)
#1
follow-up:
↓ 3
@
6 years ago
- Keywords reporter-feedback added
- Milestone changed from Awaiting Review to Future Release
#2
@
6 years ago
Hi,
Unless I'm doing something wrong, it doesn't work for me.
Could it have something to do with the fact that I'm on wordpress.com?
#3
in reply to:
↑ 1
@
5 years ago
Replying to pento:
In order to take it a step further, and add Peertube as a listed embed provider, could I get you to answer the questions listed here?
https://make.wordpress.org/core/handbook/contribute/design-decisions/#whitelisting-oembed-providers
PeerTube is free, open source software and can used by any organisation or person. Being a mainstream service does not really apply here. Development is lead by non-profit organisation Framasoft (https://framasoft.org/, https://twitter.com/framasoft).
Development is public and has 122 contributors:
https://github.com/Chocobozzz/PeerTube
Oembed code looks okay to me:
https://github.com/Chocobozzz/PeerTube/blob/master/server/controllers/services.ts
The website and documentation are available in multiple languages:
https://joinpeertube.org/en/
https://docs.joinpeertube.org/
The software has a Wikipedia page:
https://en.wikipedia.org/wiki/PeerTube
PeerTube is comparable with video portals like YouTube and Vimeo that are already supported in WordPress.
#4
@
3 months ago
Related: #58120
Just like Mastodon, PeerTube is a federated platform. We consequently cannot add a single item to the embed allowlist, since PeerTube embeds can come from many different domains.
It looks like we're running into similar CORS errors as with Mastodon. When I try to embed via oEmbed discovery today from a random PeerTube site, I get the following error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://video.everythingbagel.me/client/standalone/videos/assets/embed-BlnAWHYX.js. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
Thank you for the request, @haywardgb!
I've just tested, and it appears that Peertube's oEmbed support works well with WordPress: I can just paste the video URL into the editor, and it will be automatically embedded.
In order to take it a step further, and add Peertube as a listed embed provider, could I get you to answer the questions listed here?
https://make.wordpress.org/core/handbook/contribute/design-decisions/#whitelisting-oembed-providers