Skip to content

Commit

Permalink
add getPlaybackRate method for mediaelement.js (katspaugh#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
entonbiba authored Mar 6, 2017
1 parent 17ecdcb commit a8a6a6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mediaelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ WaveSurfer.util.extend(WaveSurfer.MediaElement, {
return (this.getCurrentTime() / this.getDuration()) || 0;
},

getPlaybackRate: function () {
return this.playbackRate || this.media.playbackRate;
},

/**
* Set the audio source playback rate.
*/
Expand Down

0 comments on commit a8a6a6f

Please sign in to comment.