javascript - cast_sender.js 错误:无法在 Chrome 中加载资源:net::ERR_FAILED

标签 javascript youtube

我最近开始收到以下控制台错误,但没有进行任何代码更改。

我最近没有安装任何扩展。

Failed to load resource: net::ERR_FAILED chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js
Failed to load resource: net::ERR_FAILED chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js
Failed to load resource: net::ERR_FAILED chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js
Failed to load resource: net::ERR_FAILED chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js
Failed to load resource: net::ERR_FAILED

我的页面上有多个嵌入的 YouTube 播放器会触发此错误,但它们很简单:

<iframe width="100%" height="100%" src="http://www.youtube.com/embed/OUR_YOUTUBE_ID?showinfo=0&amp;wmode=transparent" frameborder="0" allowfullscreen=""></iframe>

其他人也经历过这种情况吗?

最佳答案

显然,即使未安装扩展程序,YouTube 也会不断轮询 Google Cast 脚本。

来自一个commenter :

... it appears that Chrome attempts to get cast_sender.js on pages that have YouTube content. I'm guessing when Chrome sees media that it can stream it attempts to access the Chromecast extension. When the extension isn't present, the error is thrown.

Read more

我遇到的唯一解决方案是安装 Google Cast扩展,无论您是否需要。然后您可以隐藏工具栏按钮。

有关更多信息和更新,请参阅 this SO question 。这是official issue .

关于javascript - cast_sender.js 错误:无法在 Chrome 中加载资源:net::ERR_FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25833940/

相关文章:

objective-c - UIWebView 中嵌入的 Youtube 在进入全屏时导致 iPad 崩溃

html - 嵌入 youtube 视频时出错需要帮助

google-chrome - 允许 Youtube iframe 显示与 Youtube.com 兼容的 Chrome 扩展程序

regex - REGEXP_REPLACE Data Studio中的YouTube视频URL清理

javascript - 使用 JavaScript 更改字符串

javascript - 更换|| (连接)在字符串中

javascript - 如何在 JavaScript 中使用 find() 和 findIndex

javascript - Native BigInt 和 Intl.NumberFormat 用于准确的货币计算和显示?

javascript - 对话框打开时停止功能

wpf - 在WPF中播放YouTube视频