Skip to content

Releases: clappr/clappr

seeking seconds by default

01 Dec 13:10
Compare
Choose a tag to compare
  • 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

27 Nov 13:52
Compare
Choose a tag to compare

standardize events

25 Nov 13:40
Compare
Choose a tag to compare
  • 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

18 Nov 19:17
Compare
Choose a tag to compare
  • 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