Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7315] Android: Titanium.Media.AudioPlayer: cannot unpause or start player depending on scope of source code

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-05-01T18:48:36.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/s2013 Sprint 09 API, 2013 Sprint 09
ComponentsAndroid
Labelsqe-and011912, triage
ReporterDustin Hyde
AssigneeVishal Duggal
Created2012-01-20T12:55:42.000+0000
Updated2017-03-29T16:02:27.000+0000

Description

Attachments

FileDateSize
module_media.zip2012-01-20T14:17:35.000+00004873358
stand-alone start error.txt2012-01-20T12:55:42.000+00001883
Test.zip2012-01-20T12:55:42.000+00002320238

Comments

  1. Dustin Hyde 2012-01-20

    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).
  2. kosso 2013-04-18

    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.
  3. Vishal Duggal 2013-05-01

    The pausebutton click listener is incorrect Current Code
       pauseButton.addEventListener('click', function() {
           streamer.pause();
           if (streamer.paused) {
               pauseButton.title = 'Unpause Streaming';
           }
           else {
               pauseButton.title = 'Pause Streaming';
           }
       });
       
    Correct Code
       pauseButton.addEventListener('click', function() {
           if (pauseButton.title == 'Pause Streaming') {
               streamer.pause();
               pauseButton.title = 'Unpause Streaming';
           }
           else {
               streamer.start();
               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.
  4. Lee Morris 2017-03-29

    Closing ticket as invalid, with reference to the above comments.

JSON Source