asp:MediaPlayer (Silverlight) https/http 问题

发布于 2024-08-14 04:52:53 字数 550 浏览 4 评论 0原文

我们有一个网站 (https://oursite.net),我们在其中显示托管在 http (http://someserver.com)。该网站需要托管在 https 上,并且我们不控制视频,因此我假设它需要托管在 http 上。我们最近添加了通过 silverlight asp:MediaElement 播放流的选项,该选项在我们的测试环境(在 http 上)中运行得很好,但在生产环境中(https)中不起作用。

网络上的信息有点令人困惑,因为我很难区分这些东西在 silverlight 开发的不同阶段是如何工作的(似乎有点来回)

这种设置是否可能(托管播放器)在 https 上但在 http 上播放流)并使用某种策略文件? 在这种情况下:此策略文件是否需要通过 silverlight 应用程序(在 https 上)或流所在的位置(http)

托管 安德烈亚斯

we have a site (https://oursite.net) in which we display a videostream hosted on http (http://someserver.com). The site needs to be hosted on https, and we don't control the video, so I'm assuming it needs to be on http. we recently added the option to play the stream through the silverlight asp:MediaElement, which works perfectly fine in our test environment (on http) but doesn't work in production (https).

The info on the web is somewhat confusing as I'm having a hard time differentiating between how this stuff worked at different stages in the silverlight development (seems to have been a bit to and fro)

Is this setup possible at all (hosting the player on https but playing a stream on http) with some sort of policy file?
in that case: does this policy file need to be hosted with the silverlight app (on https) or where the streams are located (http)

Thanks for your time
Andreas

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

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

发布评论

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

评论(2

怀念你的温柔 2024-08-21 04:52:53

不幸的是,您遇到了跨方案违规。该流需要与托管应用程序匹配相同的方案 (https)。不幸的是,大多数流媒体在 HTTPS 中不可用。

You are running into a cross-scheme violation unfortunately. The stream would need to match the same scheme (https) as the hosting application. Unfortunately most streaming isn't available in HTTPS.

旧瑾黎汐 2024-08-21 04:52:53

您可以检查对象的 enableHtmlAccess 属性吗标签以确保其真实性?大多数媒体播放器最终都会使用 HTML DOM 桥与网页进行通信。

也可能存在跨方案问题:您应该尝试优化同一方案(HTTP 或 HTTPS)上的所有资产。

Can you check the enableHtmlAccess property on the object tag to make sure it is true? Most media players end up using the HTML DOM bridge to communicate with the web page.

It's also likely that there is a cross-scheme issue: you should try and optimize for all assets being on the same scheme (HTTP or HTTPS).

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