嵌入无法与Node-webkit一起使用的Youtube视频 [英] Embedding Youtube videos not working with Node-webkit

查看:101
本文介绍了嵌入无法与Node-webkit一起使用的Youtube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在nw.js应用中嵌入了youtube视频.正确视频的预览可以正确显示,但是当我单击播放时,遇到以下错误:

I have an embedded youtube video in my nw.js app. The preview for the correct video shows up properly but when I click to play it I am met with the following error:

发生错误,请稍后重试

应用中的所有视频均出现此错误,但其中一个会出现此令人费解的错误:

All of the videos in the app get this error, except for one that gets this puzzling error:

以下视频包含国际篮球联合会的内容

当我单击这些视频时,可以看到视频的第一秒钟,然后再显示错误.

When I click these videos, I can see the first split second of the video before the error shows up.

我尝试在清单中启用/禁用Webkit插件:

I tried enabling/disabling the webkit plugin in the manifest:

  "webkit": {
    "plugin": true
    }

,并且我尝试按照

and I tried using the Javascript Player API as suggested by in this post. However I still get the same errors.

如何使这些视频正常播放?

How can I get these videos to play properly?

这里是显示视频的HTML(我正在使用angularJS,视频在模式窗口中):

Here is the HTML (I'm using angularJS and the video is in a modal window) that displays the video:

<script type="text/ng-template" id="myModalContent.html">
        <object width="100%" height="600px" data={{video}}> 
        </object>

</script>

我还尝试使用Javascript Player API复制此示例,甚至尝试使用相同的示例视频作为示例,但我仍然遇到相同的错误.

I also tried copying this example using the Javascript Player API and even tried using the same video as the example but I'm still getting the same error.

非常感谢您抽出宝贵的时间.让我知道您是否还需要我提供其他信息,或者我不清楚.

Thank you very much for your time. Let me know if you need anything else from me or if I am being unclear.

推荐答案

好,所以问题出在ffmpegsumo.dll.起初,我尝试用chrome 39和42中的dll替换它,但这不能解决我的问题.用Chrome 38.0.2125.122中的ffmpegsumo.dll替换了文件后,我的问题已修复,视频可以按预期播放.

Ok so the issue was the ffmpegsumo.dll. At first I tried replacing it with the dll from chrome 39 and 42 and that did not fix my issue. After replacing the file with the ffmpegsumo.dll from Chrome 38.0.2125.122, my issue was fixed and videos played as expected.

Chrome 38.0.2125.122 ffmpegsumo.dll 32位

Chrome 38.0.2125.122 ffmpegsumo.dll 64位

这篇关于嵌入无法与Node-webkit一起使用的Youtube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆