layer._updateVisualProgress(percentagePlayed);
      },

      //
      // Helper function
      // updates the progress bar based on a percentage played

      _updateVisualProgress: function(percentagePlayed) {
        var player = this;

        player.$.progress.style.transform = 'scaleX(' + percentagePlayed + ')';
        player.$.progress2.style.width = percentagePlayed * 100 + '%';
        player.$.title2.style.width = (1 / percentagePlayed) * 100 + '%';
      },

      //
      // If src is changed 