[TIMOB-7315] Android: Titanium.Media.AudioPlayer: cannot unpause or start player depending on scope of source code
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2013-05-01T18:48:36.000+0000 |
| Affected Version/s | Release 1.8.0.1, Release 2.0.0 |
| Fix Version/s | 2013 Sprint 09 API, 2013 Sprint 09 |
| Components | Android |
| Labels | qe-and011912, triage |
| Reporter | Dustin Hyde |
| Assignee | Vishal Duggal |
| Created | 2012-01-20T12:55:42.000+0000 |
| Updated | 2017-03-29T16:02:27.000+0000 |
Description
Attachments
| File | Date | Size |
|---|---|---|
| module_media.zip | 2012-01-20T14:17:35.000+0000 | 4873358 |
| stand-alone start error.txt | 2012-01-20T12:55:42.000+0000 | 1883 |
| Test.zip | 2012-01-20T12:55:42.000+0000 | 2320238 |
Removed link to TIMOB-1805. 'Too deep recursion' was caused by module_media > Acceptance > timob_5900, not this issue. Re-attaching module_media with erroneous test removed. Modularized Rhino behavior found to be identical to V8 (cannot unpause player).
Is this getting any attention? I have a radio app I'm building for a client and the performance of the audioPlayer on Android is abominable. It often takes 60 seconnds to start a stream. ALSO it takes way too long to 'stop'/release a stream.
The pausebutton click listener is incorrect Current Code
Correct CodepauseButton.addEventListener('click', function() { streamer.pause(); if (streamer.paused) { pauseButton.title = 'Unpause Streaming'; } else { pauseButton.title = 'Pause Streaming'; } });The error on the standalone app is due to the fact that you are passing in an empty url to the audio player proxy. Remove the clearOnEdit:true property from the textField and everything should be fine.pauseButton.addEventListener('click', function() { if (pauseButton.title == 'Pause Streaming') { streamer.pause(); pauseButton.title = 'Unpause Streaming'; } else { streamer.start(); pauseButton.title = 'Pause Streaming'; } });Closing ticket as invalid, with reference to the above comments.