Results 1 to 3 of 3

Thread: The autoPause config parameter of Media components is not working

    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

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

  3. #3
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Fixed for the nest release.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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