gpt4 book ai didi

SSL 页面嵌入来自 Vimeo 的非 SSL 视频

转载 作者:太空宇宙 更新时间:2023-11-03 13:37:48 25 4
gpt4 key购买 nike

我正在使用 iframe 将来自 Vimeo 的视频嵌入到我们的 Moodle LMS 中。我的代码在 Chrome、IE 和 Firefox 中运行良好,但在 Safari 中运行不佳。我正在使用标准的 Vimeo API 来嵌入视频。我知道问题与 SSL 相关,因为我可以从 URL 中的 HTTP 中删除 S,并且嵌入的视频可以完美运行。我无法在不安全的环境中运行我们的 LMS,视频也没有威胁,但由于开销,vimeo 不会使用 ssl 流式传输他们的视频。谁有适用于所有浏览器的解决方案?

最佳答案

Vimeo's Embedding Videos FAQ page表明它确实支持 HTTPS。您是否遵循这些说明?

Can I embed my video on an HTTPS domain?

You sure can!

Our embed code is now “protocol relative,” which means that we adhere to the protocol of your website, whether it’s HTTP or HTTPS.

If you’re using an older version of the Vimeo embed code (with a http://player.vimeo.com URL within it), you’ll simply need to change “http” to “https” and it should start working!

Why doesn't my video load when I preview it in my website editor?

Vimeo's embed code uses protocol-relative URLs, meaning that we automatically match the embedded video's protocol to your website's — either HTTP or HTTPS.

If you are previewing your website with a program like Dreamweaver, the video will not load because the program cannot determine the correct protocol to use. That said, the video should work flawlessly once you publish it.

There are two ways you can test your embed: Add http:// to the player.vimeo.com URL in your website's source code. This should allow you to see the embed in preview mode. Publish a live test page where you can see the embedded video in action.

关于SSL 页面嵌入来自 Vimeo 的非 SSL 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34008947/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com