Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angualr2 and electron #52

Open
kazemihabib opened this issue May 2, 2016 · 16 comments
Open

angualr2 and electron #52

kazemihabib opened this issue May 2, 2016 · 16 comments

Comments

@kazemihabib
Copy link

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

@jaruba
Copy link
Owner

jaruba commented May 2, 2016

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
Copy link
Author

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
Copy link
Owner

jaruba commented May 2, 2016

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

@jaruba
Copy link
Owner

jaruba commented May 2, 2016

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
Copy link
Author

kazemihabib commented May 3, 2016

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
Copy link
Owner

jaruba commented May 3, 2016

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
Copy link
Author

kazemihabib commented May 3, 2016

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
Copy link
Owner

jaruba commented May 3, 2016

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

@kazemihabib
Copy link
Author

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

@jaruba
Copy link
Owner

jaruba commented May 3, 2016

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
Copy link
Owner

jaruba commented May 3, 2016

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

@kazemihabib
Copy link
Author

i tried with other links but throws the same error

@jaruba
Copy link
Owner

jaruba commented May 3, 2016

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

@RSATom
Copy link
Contributor

RSATom commented May 4, 2016

@kazemihabib, what Electron version do you use?

@kazemihabib
Copy link
Author

i'm using 37.8

@RSATom
Copy link
Contributor

RSATom commented May 4, 2016

then it's known issue: RSATom/WebChimera.js#69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants