Releases: clappr/clappr
Releases · clappr/clappr
seeking seconds by default
- updates hlsjs to v0.3.3
- fixes CI and send data to coveralls
- increases overall test coverage and documentation
- adds
seekPercentage
to all the playbacks and player - adds
playbackNotSupportedMessage
options to message be shown when the playback is not supported - fixes localStorage setting's persistence bug #677
Changes to API
-setCurrentTime(timeInPercentage)
+seek(time)
+seekPercentage(percent)
-player.seek(timeInPercentage)
+player.seek(timeInSeconds)
new container events
Adds two new events to container:
standardize events
- fixes (partially) hd indicator not showing up #682
- standardize progress, timeupdate, loadedmetadada and playbackstate events
Changes to event API
- this.trigger(Events.PLAYBACK_PLAYBACKSTATE)
+ this.trigger(Events.PLAYBACK_PLAYBACKSTATE, {type: this.playbackType})
- this.trigger(Events.PLAYBACK_LOADEDMETADATA, duration, loadmetrics)
+ this.trigger(Events.PLAYBACK_LOADEDMETADATA, {duration: duration, data: loadmetrics})
- this.trigger(Events.PLAYBACK_TIMEUPDATE, position, duration, this.name)
+ this.trigger(Events.PLAYBACK_TIMEUPDATE, {current: position, total: duration}, this.name)
- this.trigger(Events.PLAYBACK_PROGRESS, 0, this.el.getBytesLoaded(), this.el.getBytesTotal(), this.name)
+ this.trigger(Events.PLAYBACK_PROGRESS,{
+ start: 0,
+ current: this.el.getBytesLoaded(),
+ total: this.el.getBytesTotal()
+ })
more events and some fixes
- fixes: media control, dvr sliding window, getDuration for hlsjs, destroy method on hlsjs
- clappr is no longer available at
window.p
- updates: documentation and readme
- adds the 'parent' option
- dispatches PLAYER_VOLUMEUPDATE event
- adds getVolume method
- adds context menu event