PeerTube Links on Mastodon not embedding

I’ve tried everything I can think of to get PeerTube video links to embed or to be playable inside of Mastodon. Rumble, YouTube, BitChute and others all work fine. PT videos just show as a link (even after refresh). What am I missing?

1 « J'aime »

Hello,

Do you have an URL of a PeerTube on Mastodon?

I do. Here is an example of a PeerTube link on a public Mastodon instance:
https://noagendasocial.com/@spotthespook/107451228382769176

This one shows a preview card and takes you to the external PeerTube instance as opposed to playing in Mastodon.

I administer a private Mastodon instance, where the behavior is almost the same except it only shows the link with no preview card.

From your example link, you will get the following oEmbed endpoint, but when you try to retrieve it, a 403 will be returned.
https://video.deplorablesocial.com/w/wWko25aTtDV4qLQ3aCEzst

https://video.deplorablesocial.com/services/oembed?url=https://video.deplorablesocial.com/w/wWko25aTtDV4qLQ3aCEzst

From your example link, you will get the following oEmbed endpoint, but when you try to retrieve it, a 403 will be returned.

Here is another example. The oEmbed endpoint from this link will give you the data as expected.
https://fedimovie.com/w/8ZBdosnEVLxKhA7j9hQiB9

https://fedimovie.com/services/oembed?url=https://fedimovie.com/w/8ZBdosnEVLxKhA7j9hQiB9

{
  type: "video",
  version: "1.0",
  html: "<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" title="2019年8月3日の上尾花火大会より" src="https://fedimovie.com/videos/embed/40bb110f-9c31-46c3-844e-5466b803425a" frameborder="0" allowfullscreen></iframe>",
  width: 560,
  height: 315,
  title: "2019年8月3日の上尾花火大会より",
  author_name: "のえるチャンネル",
  author_url: "https://fedimovie.com/video-channels/noellabo_channel",
  provider_name: "PeerTube",
  provider_url: "https://fedimovie.com",
  thumbnail_url: "https://fedimovie.com/lazy-static/previews/9c54983d-b8e0-4f54-bf50-69457d7dc8f3.jpg",
  thumbnail_width: 850,
  thumbnail_height: 480
}

Is the oEmbed endpoint at video.deplorablesocial.com working correctly?

I’m not sure why you’re getting a 403. I am not. Perhaps geographic restrictions on your end?

Access to the oEmbed endpoint to fedimovie.com should be successful with a return of 200 (fedimovie.com is my PeerTube server)

Access to the oEmbed endpoint to video.deplorablesocial.com returns 403. And because of that, Mastodon doesn’t show the player.

Someone needs to find out why the oEmbed endpoint on video.deplorablesocial.com returns a 403.

(I’m a Mastodon Collaborator, explaining the cause based on Mastodon’s internal behavior)

Ok now I understand. This is probably a firewall issue then. Any idea what port the embed service uses?

Any idea what firewall ports need to be open from external besides TCP 80, TCP 443 and TCP 9000? I think this is likely the issue and the documentation isn’t clear.

You should not to have to open other ports than 80/443.

https://video.deplorablesocial.com/services/oembed?url=https://video.deplorablesocial.com/w/wWko25aTtDV4qLQ3aCEzst seems to work correctly now

and 1935 for lives (RTMP protocol)