[TIMOB-7597] Android: Media - Sound plays randomly, not after each press
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-03-06T14:07:54.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Tamila Smolich |
Assignee | Hieu Pham |
Created | 2012-02-09T13:35:25.000+0000 |
Updated | 2017-03-09T23:20:25.000+0000 |
Description
Steps to Reproduce:
1. Run the attached files
2. Press the sound buttons 1 and 2 randomly at least 10 times, listen to the sounds.
Expected Result:
Sounds should play every time
Actual Result:
Sound plays randomly, not after each press
Note: Tested on 1.8.1 build running rhino. The bug doesn't occur in this build.
Attachments
File | Date | Size |
app.js | 2012-02-09T13:35:25.000+0000 | 1157 |
dtmf-1.mp3 | 2012-02-09T13:35:25.000+0000 | 8613 |
dtmf-3.mp3 | 2012-02-09T13:35:25.000+0000 | 8613 |
The delay seems to be a known Android issue. I notice if I keep clicking these 2 buttons very fast, I get error (-19, 0). This is b/c your app is creating multiple mediaPlayer objects at the same time (if you click very fast). You should try to create it once and re-use or clean up your previous media player before creating a new one. Reference article: http://stackoverflow.com/questions/5246898/mediaplayer-dies-android P.S: I tried on 1.8.0.1, 1.8.1, 1.8.2 and latest master and this issue persists.
Closing as invalid
Closing ticket as invalid.