whileplaying() fires only on end of the soundfile
Hello
i want to write an adapter to use sm2 with js-framework qooxdoo.
But i have the following problem: The event soundmanager.whileplaying() only fires once at the end of the song. If i use while loading instead, it all goes fine. Also if i use the same code without qooxdoo it workes well. So is there any difference in implementation of "whileloading" and "whileplaying"-event?
How can i get this one done?
Thanks for help.
i want to write an adapter to use sm2 with js-framework qooxdoo.
But i have the following problem: The event soundmanager.whileplaying() only fires once at the end of the song. If i use while loading instead, it all goes fine. Also if i use the same code without qooxdoo it workes well. So is there any difference in implementation of "whileloading" and "whileplaying"-event?
How can i get this one done?
Thanks for help.
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Do you have a public/demo URL which reproduces this issue? I suspect whileplaying() may be silently failing with a JS error when used with Qooxdoo. As a test, you could try adding a bit of debug code to SM2's whileloading() method. Do a search within soundmanager2.js for the "this._whileloading" function - the _whileplaying() is defined just after it also, FWIW.
Also, I assume the demos on the SM2 site work fine with your browser, thus the issue is related to Qooxdoo OR possibly the sound files you're using(?)
-
Inappropriate?Thanks for your reply!
I added some debug-output to the _whileplaying method, it also outputs only at the end of the song.
I try to get some examplecode online this week, so you can look on it.
I think it has to do with the combination of qooxdoo and sm2... i will try a bit, hopefully i'll get it runing. -
Inappropriate?perhaps i got a bug!
the eventListener which calls the checkProgress function is shutted down during init!
If i call the setPolling(true) again at the _load-function it all works well.
PS: Nice work either... if my project is showable, i'll post something here!
I’m happy now that it works
-
Inappropriate?Hm, perhaps polling is not enabled from the Flash movie by default - did you change the polling setting in the default SM2 configuration?
This "polling" means that Flash regularly checks the state of its sound objects, and notifies the SM2 Javascript controller of changes to properties like position, bytesLoaded, bytesTotal etc. SM2 initially makes a call to Flash to enable or disable polling when it starts up, so if something is breaking there, that may explain why whileplaying()/whileloading()-related functions are not regularly firing.
1 person says
this solves the problem
-
Inappropriate?i'm shure i enabled polling in the sm2-config...
if i have some time, i will search for the problem. Now it works like charm, and i am happy.
i also plan to rewrite the js-part of the sm2 in qooxdoo class style and contribute it to the qooxdoo project, if you don't object. -
Provided Qooxdoo has BSD-compatible licensing, that should not be a problem. It appears Qooxdoo does allow for BSD-licensed code to be included - see http://qooxdoo.org/license. -
Inappropriate?ok, i not even thought as this far ... but that should be the first thing i think.
i'm not quite familiar with licences of open source projects. so i have to take one or two lessons on this.
thanks again for all your support and this great player!
Loading Profile...



EMPLOYEE