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
    86
    Vote Rating
    4
    karazy is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    86
    Vote Rating
    4
    karazy is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    Jarppi is on a distinguished road

      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...

Thread Participants: 2