plugins: add duration parameter handling to timeline plugin (#1491)
plugins: add duration parameter handling to timeline plugin (#1491)

* Add duration parameter handling to renderCanvases

* Add documentation for duration parameter

* Duration is optional parameter to override getDuration function
katspaugh/wavesurfer.js,katspaugh/wavesurfer.js