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

Uncaught RangeError: MAximum call stack size exceeded #11

Open
karneaud opened this issue Nov 4, 2014 · 2 comments
Open

Uncaught RangeError: MAximum call stack size exceeded #11

karneaud opened this issue Nov 4, 2014 · 2 comments

Comments

@karneaud
Copy link

karneaud commented Nov 4, 2014

Seem to be getting an error near player.pause(); function checkStart(player, sID, sound, sprite, callback){ player.currentTime = sprite.start; if (player.currentTime != sprite.start){ checkStart(player, sID, sound, sprite, callback); }else{ return playerPlay(player, sID, sound, sprite, callback); } } when using Android 4.0.3 stock browser. Works fine in Chrome for Android though

Seems like the player.currentTime = sprite.start is not being set or the function is just in some continuous loop from a previous sprite play

@karneaud karneaud changed the title Callstack exceed on line 249 Uncaught RangeError: MAximum call stack size exceeded Nov 4, 2014
@karneaud
Copy link
Author

karneaud commented Nov 4, 2014

Fixed this by changing if (player.currentTime != sprite.start){ to if (Math.round(player.currentTime) != Math.round(sprite.start)){ My start and end time has decimals.

Not sure if you guys want to incorporate this into the build. Imma leave this issue open till you close it!

@pupunzi
Copy link
Owner

pupunzi commented Nov 4, 2014

Thank you Karneaud,
I'll check if that is the best solution to solve the Android stock browser issue.

Bye,
Matteo

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

2 participants