无法实现视频全屏,需要HTML标签吗?

Hi. I can’t have full screen on my videos from PeerTube. I put them on Mastodon and they take full screen, but not at Discourse.

I have written to the PeerTube admin from my PT instance and he told me that couldn’t find the fullscreen tag from the iframe at the video. The video is this one.

When I try to insert the video with an iframe code, there’s nothing at the space where the video should be. Remains empty. So, a question here too: the HTML iframe doesn’t works at Discourse, only Markdown? Or maybe I do it wrong? I take only the code from PeerTube to insert and paste it on the Discourse editor.

I have tried a lot of times with other instances of PeerTube. The result was the same. So, if the problem happens at Discourse (at Mastodon doesn’t), there is a way to have fullscreen at Discourse, maybe in a way I don’t know? Or I have to insert the video with a different language, not Markdown?.. I don’t know what to do more… Can you help me?

Did you add the origin URL to the setting allowed iframes ?

谢谢,@Falco。我现在已经完成了:


然后,我移除了 * 符号。结果还是一样……

I tried to do it with Vimeo this time. I have no full screen either… :worried:

The iframe, more elaborated, doesn’t work. The link to the video, pure and simple, doesn’t show the fullscreen option. I don’t know, there are any video platform where you can have full screen at your videos? (Not YouTube, please).

It can be that is still not working this code at Discourse Core?

The issue I’m asking was commented here, or similar:

Let’s try the standard Vimeo share code:

Looks ok to me :thinking:

And what do you see here? I can’t do fullscreen at my Discourse. Can you do it here?

Wow! Here is possible, at my forum, it isn’t. What the hell? And is wider at my forum too. Occupies all the “channel” of text (I don’t remember -or maybe know- now what name can be that). Here is the half or less than there.

What could be the mistake? It’s me, can be something at the forum? I did already the “allowed iframes” issue, but I don’t use the iframe code, only the normal link to share.

Edited 2019-10-31T23:00:00Z

There are no thoughts to solve it?

我也遇到了同样的问题,不过我的情况可能与 @aldobelus 的不同。
在我们的环境中,Discourse 是一个更大门户的一部分,该门户通过 iframe 加载每个组件。

  • 如果在新标签页中直接打开网站,全屏按钮是存在的。
  • 如果在 iframe 中打开网站,全屏按钮则缺失。在嵌入的视频中,可以说是“iframe 嵌套 iframe”。

视频本身在这两种情况下都可以正常访问和播放。

有人知道可能是什么问题,以及如何排查吗?

我们不支持在 iframe 中运行 Discourse。从技术上讲,你可以这样做,但结果只会变得混乱不堪。

感谢你的回复和建议——我**100%**赞同你的观点,毫无疑问。
不过,如果设置中有一个选项允许用户在 iframe 中运行 Discourse,我们的客户经常会问为什么某些功能不再有效,从而引发大量不必要的调试工作,去排查那些永远无法生效的问题。别误会,我并不是在和你争论,我和你的看法完全一致。

我的建议是,我们在设置中“允许将网站嵌入 iframe