Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3406 in a recent build.
  1. #1
    Sencha User VladimirTechMan's Avatar
    Join Date
    Jun 2012
    Location
    Russia
    Posts
    50
    Vote Rating
    4
    VladimirTechMan is on a distinguished road

      0  

    Default The autoPause config parameter of Media components is not working

    The autoPause config parameter of Media components is not working


    Ext version tested:
    • Sencha Touch 2.1.0-b2 (also applicable to all the previous ST 2.x versions)
    Browser versions tested against:
    • Mobile Safari (on iOS 5.1.1)
    Description:
    • The autoPause config parameter of Media components is not working
    Steps to reproduce the problem:
    • Create an Audio or Video component with some media associated and set the configuration parameters so that autoPause is true and autoResume is false (those two values are set by default, indeed).
    • Activate the component and cause the media to be playing.
    • Deactivate the component.
    The result that was expected:
    • The media is paused as autoPause is true
    The result that occurs instead:
    • The media is not paused
    The root cause and the fix to apply:
    • In the Media.js file find the following fragment:
      Code:
          onDeactivate: function() {
              var me = this;
      
              if (me.getAutoResume() && me.isPlaying()) {
                  me.pause();
              }
          },
      and change it as follows:
      Code:
          onDeactivate: function() {
              var me = this;
      
              if (me.getAutoPause() && me.isPlaying()) {
                  me.pause();
              }
          },

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Vote Rating
    850
    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


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Vote Rating
    850
    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


    Fixed for the nest release.
    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.

Thread Participants: 1

Tags for this Thread