[AC-1092] Unable to play certain sound files in Android
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2014-06-13T01:18:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | android,, defect |
Reporter | Trevor Chong |
Assignee | Shuo Liang |
Created | 2014-05-29T22:51:14.000+0000 |
Updated | 2016-03-08T07:37:26.000+0000 |
Description
I'm trying to just simply play a sound file on my Android device a Samsung Galaxy S3. This works fine on my genyMotion sim and iOS sim/device.
For some reason, I tried my timer.wav and newmail.wav and they won't any sounds. Only the cricket one works fine.
var timerSound = Ti.Media.createSound({ url: "/etc/timer.wav", preload:true });
timerSound.play();
Attachments
File | Date | Size |
example.zip | 2014-05-29T22:51:14.000+0000 | 3352635 |
Hi, I tested your code and sound file with my Sammung Galaxy, it works fine, can't reproduce your problem. So there is some suggestion for you. 1.Try to uninstall app from the device before doing the test. 2.Clean the project (Menu project -> clean). 3.Max the volume of your device, as the timer.wav and newmail.wav sound is quite light and short. 4.Try to update the titanuim SDK to 3.2.3 version (latest stable version). Hope this will help you. Regard, Shuo
Thanks. Seems like 3.2.3 fixed it.