jaruba / wcjs-player

Node Player made for WebChimera.js (libVLC wrapper)
http://webchimera.org/
GNU Lesser General Public License v2.1
178 stars 46 forks source link

angualr2 and electron #52

Open kazemihabib opened 8 years ago

kazemihabib commented 8 years ago

I got this errror: angular-pollyfills.js:285 Cannot read property 'context' of undefined

jaruba commented 8 years ago

Your pointing me to an angular project file, unless you tell me where that error comes from in my own code, then I have no chance at debugging this.

kazemihabib commented 8 years ago

actully even when I just add <script src="../../node_modules/wcjs-player/index.js"></script> in my html page it gives me this error and I think I should first fix this: electron

and I don't know why in the second error it looks for that file there.

jaruba commented 8 years ago

That error is because you need <style></style> in your index.html's header

jaruba commented 8 years ago

The general.css error is because the path to the css file seems to break in your developer environment somehow. That's defined and used here: https://github.com/jaruba/wcjs-player/blob/master/index.js#L32 https://github.com/jaruba/wcjs-player/blob/master/index.js#L39-L40

If you find a way to make that code work for your case too, while not breaking other uses cases, I'd be happy to see a PR for it.

kazemihabib commented 8 years ago

I fixed the general.css temprorarily just for my use case.but I got this error: Error: Module version mismatch. Expected 47, got 43. when I add var player = new wjs("#player").addPlayer({ autoplay: true });

jaruba commented 8 years ago
Error: Module version mismatch. Expected 47, got 43.

This error means that you've built or downloaded WebChimera.js.node for a different version of Electron or NW.js then the version you are actually using.

kazemihabib commented 8 years ago

I found that webchimera builds by default for nwjs so I go to the webchimera folder and run the ./build-electron.sh but it gives the error again so I changed the version of electron in it and problem solved. but now It does not playing and just shows buffering 0%. (I think there is problem again with systemjs) and when I try with https://archive.org/download/electricsheep-flock-244-32500-2/00244%3d32592%3d22973%3d22551.avi the buffer completes with 100% but show nothing and in the terminal "[h264 @ 0x1887a5585880] The maximum value for lowres supported by the decoder is 0 ".

jaruba commented 8 years ago

If your on Windows, download and run DebugView, try to play it again, then check the DebugView window for the VLC log.

kazemihabib commented 8 years ago

no im on linux do you have any idea to for linux?

jaruba commented 8 years ago

Should be shown in the terminal then.. uhm.. the error you mentioned seems to relate to a ffmpeg crash, so it's not related to WebChimera.js, but to VLC. You can try installing the latest VLC.

jaruba commented 8 years ago

Or try other links too.. It may be related to avi specifically.

kazemihabib commented 8 years ago

i tried with other links but throws the same error

jaruba commented 8 years ago

I have no knowledge of this error, @RSATom might know more.

RSATom commented 8 years ago

@kazemihabib, what Electron version do you use?

kazemihabib commented 8 years ago

i'm using 37.8

RSATom commented 8 years ago

then it's known issue: https://github.com/RSATom/WebChimera.js/issues/69