dist/howler.js
function() {
      var self = this;
      var parent = self._parent;

      // Round up the duration to account for the lower precision in HTML5 Audio.
      parent._duration = Math.ceil(self._node.duration * 10) / 10;

      // Setup a sprite if none is defined.
      if (Object.keys(parent._sprite).length === 0) {
        parent._sprite = {__default: [0, parent._duration * 1000]};
      }

      if (parent._state !== 'loaded') {
        parent._state = 'loaded';
        parent._emit('load');
        parent._loadQueue();
      }

      // Clear the event listener.
      self._node.removeEventListener(Howler._canPlayEvent, self._loadFn, false);
    }
function() {
      var self = this;
      var parent = self._parent;

      // Round up the duration to account for the lower precision in HTML5 Audio.
      parent._duration = Math.ceil(self._node.duration * 10) / 10;

      // Setup a sprite if none is defined.
      if (Object.keys(parent._sprite).length === 0) {
        parent._sprite = {__default: [0, parent._duration * 1000]};
      }

      if (parent._state !== 'loaded') {
        parent._state = 'loaded';
        parent._emit('load');
        parent._loadQueue();
      }

      // Clear the event listener.
      self._node.removeEventListener(Howler._canPlayEvent, self._loadFn, false);
    }
function ( ) { var self = this ; var parent = self . _parent ; // Round up the duration to account for the lower precision in HTML5 Audio. parent . _duration = Math . ceil ( self . _node . duration * 10 ) / 10 ; // Setup a sprite if none is defined. if ( Object . keys ( parent . _sprite ) . length === 0 ) { parent . _sprite = { __default : [ 0 , parent . _duration * 1000 ] } ; } if ( parent . _state !== 'loaded' ) { parent . _state = 'loaded' ; parent . _emit ( 'load' ) ; parent . _loadQueue ( ) ; } // Clear the event listener. self . _node . removeEventListener ( Howler . _canPlayEvent , self . _loadFn , false ) ; }
HTML5 Audio canplaythrough listener callback.
HTML5 Audio canplaythrough listener callback .