- This topic has 10 replies, 5 voices, and was last updated 10 years, 6 months ago by Uplink1001.
-
AuthorPosts
-
joellimjjMemberHi,
I have an built a kid flash cards app that auto play audio when each flash card screen is loaded.
I tested running all flash cards on web simulator everything works fine. When I test it on my android device, after the 30th flash card screen, the javascript does execute the play but no sound play out.Regards
Joel LimMobiOne version 2.6.2
Windows 7
Code_AMemberA couple quick questions and thoughts…
Are you playing the audio using the audio widget or through the API? Are you looping the audio or starting new each time when it ends? if you are creating a new instance each time, make sure you release the old one.
media.release(); // don’t forget this call, it releases system resources.
Can you post some sample code of how you are managing the audio in your app?
joellimjjMemberHi Code A,
Thanks for responding. I did used media.release… I’m using Multipage and my code are placed in the On Page Change. Each alphabet has 3 pages of flash cards. When I reached letter K, the sound did not play out although I saw the audio widget playing.
Here is part of my code..
var media;
// Words for Letter A
if (($(newPage).attr(‘id’)) == ‘m1-Words-wordApple’){
media = AudioPlayerWidget.fromWidget( $(‘[id$=audioApple-container]’) );
media.play();
}
if (($(newPage).attr(‘id’)) == ‘m1-Words-wordAnt’){
media = AudioPlayerWidget.fromWidget( $(‘[id$=audioAnt-container]’) );
media.play();
}media.release();
Cheers,
Joel
Code_AMemberYour code looks ok and I assume it is the same for K. Have you tried to skip K in your code and go straight to next letter (or even backwards to a letter that works) to make sure there is not a syntax error or a missing/invalid audio file associated with K?
joellimjjMemberI have few other modules like alphabetsm numbers and colors flash cards. I have tried various ways of running the pages, example running a few pages in colors, numbers and words modules. Regardless of combinations, when I reached page 30, the rest of the pages that I run will not have any sound from the audio widget.
Initially, I thought it could be the MobiOne memory resources so I change the memory to 1024 in mobione.ini. The problem still persist.
Gosh, I already completed building the apps and hope to launch it but now with this problem I can’t launch it. Could this be due to some audio limitation in MobiOne? Any idea Code A?
Anyone knows how to get around this problem, please help me. Thanks.
joellimjjMemberAs for the possibility of syntax error or missing files, I have done checks on every pages and the audio widgets for several times over the past few days everything is correct. I also did testing on the simulator and every pages played the audio out without any hiccups, again with various combinations.
This problem surfaced only when I download as native app into my mobile phone. I have tried on both samsung S3 and Note 2 and both gave the same problem. The strange thing is why the sound didn’t play out even though the audio widget played?
support-octavioMemberHi joellimjj,
It’s hard to say what might be the issue. Can you share your project with us to investigate further? If yes, please send us a zip file with a sample app that demonstrate the issue to support at genuitec dot com, use title mobione data from joellimjj, also please include a link to this topic.
support-michaelKeymasterUpdate:
There appears to be a related issue with the audio player that we are discussing here
http://www.genuitec.com/support-genuitec/viewtopic.php?p=25780#p25780Will update you as soon as we have more info on the root cause.
joellimjjMemberHi Michael,
Thanks for the reply. Yes I did saw that post and highlighted it in another post about it.
Have you tried out the sample app I sent to support? The sample app clearly demostrated that the audio widgets can only play up to the 30th one. Any audio widgets after that failed to play.
I also noticed the other post was sent May 2013. It has been almost a year and few versions already, thus is Genuitec looking into solving this bug?
Without resolving this, it doesn’t allow app developers like us to build apps like language learning, audio e-books, kids learning apps which depend heavily on audio capabilities. An app that requires 50s or 100s audio files is impossible to build with this kind of issue in MobiOne.
I have already done building a full app on kids program and dread recreating the app using another platform. Honestly I love the way MobiOne allows us to build apps and hope that Genuitec can resolve this asap. Appreciate that.
Thanks.
Joel Lim
support-octavioMemberHi joellimjj,
>Have you tried out the sample app I sent to support?
Yes, it was very helpful. We have replicated the issue and are investigating it. We will provide updates as we learn more.
Uplink1001MemberThanks for the quick response.
Hope to hear from you soon as to this problem.
Thanks again.
Uplink1001
sorry posted this reply in the wrong post, but it is the same issue….. -
AuthorPosts