nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

Video not working

Open pietrop opened this issue 10 years ago • 3 comments

Hello, I am having problems playing a video stored in the app's folder .

I am on os x and have used npm install nw -save to install NW JS and use nw . to run it in development.

However the video plays if it's through an http URL. But if I src the local folder it doesn't work.

To see if it was an issue of not linking properly to the video I tried navigating to the video from the toolbar and it's still not playing.

Any ideas of the why and how to go about fixing this?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

pietrop avatar Jan 11 '16 15:01 pietrop

same issue here.

bschmitlin avatar May 03 '17 08:05 bschmitlin

I can reproduce this issue on Linux/Windows with nwjs-sdk-v0.22.1. The local video can't play.

Christywl avatar May 08 '17 03:05 Christywl

I fixed this a while back, but now not sure how. So here are a few considerations that might help:

  • NWJS version of chromium cannot play proprietary codec such as mp4 or mp3. if you try with a webm or ogg it should work.
  • the file path to the video src in the html tag, I am using absolute path, but I have a vague recollection that ./ didn't seem to work. so that's something you might want to play around with.

Hope this is useful to some, as a step towards troubleshooting it. Happy to try and figure out how I solved it in the first place, but perhaps provide a bit more context a round the issue, what kind of file, what file path you are using in src etc..

pietrop avatar May 09 '17 07:05 pietrop