Vimeo Iframe赢得了显示视频,但会在Tizen TV Web应用中播放声音

发布于 2025-02-06 14:14:56 字数 576 浏览 0 评论 0原文

关于用Angular构建的Tizen TV Web应用程序,我们遇到了一个奇怪的问题。似乎不会显示与Vimeo实体相关的视频,但它的声音会播放。

奇怪的是,当单击视频覆盖层中包含的Vimeo徽标时,它将Vimeo的页面直接加载到Web应用程序中,而无需打开Web浏览器。它在Vimeo中正常工作。

当前,我们使用在任何Web浏览器上工作的普通iFrame:

<iframe allow="autoplay; fullscreen" src="https://player.vimeo.com/video/[ID]"></iframe>

是的,config.xml具有以下标签:

<tizen:privilege name="tizen.org/privilege/internet"/>
<access origin="*" subdomains="true"/>

Vimeo设置为允许嵌入特定域列表。当允许从任何地方嵌入时,它会得到相同的行为。

我们正在三星M7上测试它。

任何想法都将受到赞赏。谢谢!

We've encountered a strange problem regarding a Tizen TV web app built with Angular. Seems like the video associated to a Vimeo entity won't be shown, but its sound will be played.

The strange thing is that, when clicking the Vimeo logo included in the video's overlay, it will load vimeo's page directly into the web app, without opening a web browser. And it works properly in Vimeo.

Currently we use a normal iframe that works on any web browser:

<iframe allow="autoplay; fullscreen" src="https://player.vimeo.com/video/[ID]"></iframe>

And yes, config.xml has the following tags:

<tizen:privilege name="tizen.org/privilege/internet"/>
<access origin="*" subdomains="true"/>

Vimeo is set to allow embedding for a specific list of domains. When allowed to embed from wherever, it got the same behaviour.

We're testing it on a Samsung M7.

Any idea is appreciated. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

画离情绘悲伤 2025-02-13 14:14:56

对于面对这个问题的任何人,我都设法在一堆尝试之后进行了修复:

而不是硬编码src,请将get呼叫发送到:

https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/[ID]

响应应包含html带有h参数附加到SRC URL的iframe的属性。

For anyone facing this, I've managed to fix it after a bunch of tries:

Instead of hardcoding the src, send a GET call to:

https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/[ID]

The response should contain a html property with an iframe that has a h parameter attached to the src url.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文