Results 1 to 5 of 5

Thread: Ext.Audio stop() not working as expected?

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    88
    Vote Rating
    4
      0  

    Default Ext.Audio stop() not working as expected?

    Hi,

    a call to stop() for Ext.Audio only causes the music to pause(). Time is not reset to 0.
    I tried it in the example:
    http://try.sencha.com/touch/2.0.0/docs/Ext.Audio.2/viewer.html

    I swapped the toggle() against dedicated play() and stop()

    Code:
             
     if(!audio.isPlaying()) {                        
     audio.play();
    } else {
     audio.stop();
    }
    Is this a known bug? Or no bug at all?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1382
      0  

    Default

    You can try something as a test:

    Code:
    audioComp.media.dom.currentTime = 0;
    If that doesn't set the time to zero, then this is an Android issue.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    88
    Vote Rating
    4
      0  

    Default

    Hi,

    thx for your answer. How can it be an android issue when this occurs in chrome?
    However I'll give this a try.

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1382
      0  

    Default

    Quote Originally Posted by karazy View Post
    thx for your answer. How can it be an android issue when this occurs in chrome?
    I'm sorry, I thought I saw Android somewhere.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Looks like it's a bug in Chrome as it is working just fine in Safari...

    Edit: Nevermind, maybe not a chrome bug after all, don't know what's happening with that try.sencha.com example as the stop function works just fine with the audio example from Kitchen Sink located here, http://docs.sencha.com/touch/2-0/touch-build/examples/production/kitchensink/index.html#demo/audio

    Edit2: Just tried running the example from try.sencha.com locally and the stop function works as it should so clearly something is wrong with that try app the example is running on...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •