2

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:

An error occurred, please try again later

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

The following video contains content from the International Basketball Federation

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

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?

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>

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.

Community
  • 1
  • 1
user95227
  • 1,533
  • 1
  • 16
  • 34
  • Could you provide a jsbin? Here's one based on the example that is working: http://jsbin.com/dupubebego/1/edit?html,js,console,output – Richard Morgan Mar 13 '15 at 11:21
  • 1
    For some reason that js.bin isn't displaying the first video (the one using the player api) in the output for me. [Here is a plunker](http://plnkr.co/edit/nJK64aPyzbXeISC8KEAb?p=preview) working properly displaying both videos. I'm trying this exact same code in a nw.js app and receiving the errors described above for the iframe video, and no display at all for the other video. – user95227 Mar 13 '15 at 13:22
  • Thanks! Well, I can reproduce it working Chrome (on Win 7) and reproduce it NOT working exactly like you described in Internet Explorer 10. Sorry I can't help more. – Richard Morgan Mar 13 '15 at 14:25

3 Answers3

2

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 bit

Chrome 38.0.2125.122 ffmpegsumo.dll 64 bit

user95227
  • 1,533
  • 1
  • 16
  • 34
  • where to place this ffmpegsumo.dll file? Does we need to inject it somewhere in node-webkit ? – Kamaldeep Singh Jan 19 '16 at 10:45
  • @KamaldeepSingh just replace the ffmpegsumo file that exists in the root folder of your application. [Here](https://i.imgur.com/6LDj0zv.png) is a photo of one of mine. – user95227 Jan 19 '16 at 13:53
0

You need the flash plugins in the plugins directory at the same root level as the package.json NPSWF32_13_0_0_214.dlland NPSWF32_14_0_0_125.dll. This with the above will enable Flash.

  • Thanks for reaching out! Know where I can download these files? After googling, I found [npswf32.dll](http://opendll.org/index.php?file-download=npswf32.dll&arch=32bit&version=9.0.28.0&dsc=#) but adding that did not change my problem. Can you please direct me to a download of those two specific dll's you mentioned? – user95227 Mar 16 '15 at 12:51
0

Had the same problem in Linux 64 bits using Yeoman Node Webkit Generator (https://github.com/Dica-Developer/generator-node-webkit/wiki/Getting-Started)

Just fixed it by adding the so lib:

$ cp nwjs/nwjs-v0.12.0-linux-x64/libffmpegsumo.so  dist/Linux64_v0.12.0/
Crisboot
  • 1,250
  • 1
  • 16
  • 28