Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7597] Android: Media - Sound plays randomly, not after each press

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-03-06T14:07:54.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterTamila Smolich
AssigneeHieu Pham
Created2012-02-09T13:35:25.000+0000
Updated2017-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

FileDateSize
app.js2012-02-09T13:35:25.000+00001157
dtmf-1.mp32012-02-09T13:35:25.000+00008613
dtmf-3.mp32012-02-09T13:35:25.000+00008613

Comments

  1. Hieu Pham 2012-03-06

    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.
  2. Hieu Pham 2012-03-06

    Closing as invalid
  3. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source