PopcornTimeCommunity / desktop

official desktop repository of original popcorn time lighweight
https://popcorntime.is
Other
267 stars 75 forks source link

The video could not be loaded, either because the server or network failed or because the format is not supported #13

Open rsantellan opened 8 years ago

rsantellan commented 8 years ago

I know this is not a bug per se. But I can't find a way to debug it, if the problem is the network or the unsupported format.

I download and compile it with npm (version 1.4.21) on a ubuntu 14.04 : npm install npm start

Is there a way to show the debug on the console?

Regards

YIFYtorrents commented 8 years ago

Google Cloud Setup

Go to your popcorntime directory desktop and paste libffmpegsumo.so in it.

luisdavim commented 8 years ago

why doesn't the compiled version work and users have to download a file to replace the one from the build??

YIFYtorrents commented 8 years ago

The new libffmpegsumo.so version always shows this warning The video could not be loaded, either because the server or network failed or because the format is not supported, so only the old version works. Someone needs to add a pull request to fix it.

sebasgarcep commented 8 years ago

The NwBuilder has a defaultUrl option that may be used to set up a custom hosting of the nw.js files with the working libffmpegsumo.so. This may be an issue with video.js (See: https://github.com/videojs/video.js/issues/2672, https://github.com/videojs/video.js/issues/1918, https://github.com/videojs/video.js/issues/1888). I'm looking further into it to find solutions.

YIFYtorrents commented 8 years ago

do you know where the defaultUrl option for NwBuilder can be found?? Maybe this https://github.com/PopcornTime-CE/desktop/blob/master/package.json#L73

sebasgarcep commented 8 years ago

https://github.com/PopcornTime-CE/desktop/blob/master/gulpfile.js#L9

sebasgarcep commented 8 years ago

Oops, my bad, it's downloadUrl :sweat_smile:. You can pass it as an option to the NwBuilder constructor. By default it is set to http://dl.nwjs.io/. See https://github.com/nwjs/nw-builder/blob/master/lib/index.js#L34.

YIFYtorrents commented 8 years ago

I have no clue how to fix it. Would really appreciate some help.

sebasgarcep commented 8 years ago

I'm busy until saturday. I can try to help out that day, is that ok?

YIFYtorrents commented 8 years ago

Absolutely okay men. We appreciate any help to the community. I wish you a nice weekend.

sebasgarcep commented 8 years ago

The owner of popcorntime.ag should:

  1. Download all the nwjs v0.12.3 zips from http://dl.nwjs.io (nwjs-v0.12.3-linux-ia32.tar.gz, nwjs-v0.12.3-linux-x64.tar.gz, nwjs-v0.12.3-osx-ia32.zip, nwjs-v0.12.3-osx-x64.zip, nwjs-v0.12.3-win-ia32.zip, nwjs-v0.12.3-win-x64.zip) and replace the libffmpegsumo.so file in it with the working one.
  2. Set up an apache2 server which will host these files. The apache2 server will take these zips from /var/www/html/v0.12.3/, so create this folder and place the zips in it.
  3. service apache2 start.
  4. Set downloadUrl to the apache2 server's address. It should preferably be hosted under a subdomain of popcorntime.ag.

That is the general idea. This is only a quick fix for developer ease. I will look into the issue in videojs and see if I can come up with anything.

YIFYtorrents commented 8 years ago

I didn't expect it being fixed so fast. Thank you for the hard work my men.

cjmick commented 7 years ago

Still having this same error. It is quite odd, because I did a complete install on another system the other day and used same distro, and same package it worked, now it doesn't, talk about confusing lol

cjmick commented 7 years ago

Any updates to this? I wish I had the brains to fix this.

sebasgarcep commented 7 years ago

As far as I can remember this is an issue with the libffmpegsumo.so library that is distributed with nwjs. Replacing the library with a working version is all it takes to fix this. That's as much as I can do for you :/ @cjmccormick

iraklisg commented 6 years ago

I do confirm the error using popcorntime-ce 0.4.1-5