Skip to content

Releases: clappr/clappr

0.2.30

18 Jan 19:12

Choose a tag to compare

  • lots of refactorings & fixes
  • updates hls.js dependency
  • updates flashls dependency
  • adds ended property to: playback, container and player
  • adds maxSkippedFragments to flashls

0.2.29

23 Dec 11:22

Choose a tag to compare

  • now you can pass a list of plugins (instead of knowing how they work internally)
-- { plugins: { core: [], container: []}
++{ plugins: []}

0.2.28

17 Dec 23:33

Choose a tag to compare

Changelog

Heads up

If your core plugin relies on either: playback (core.getCurrentPlayaback()) or container (core.getCurrentContainer()) you should bind these events in a different manner:

bindEvents() {
  // here it's not safe to assume core.container will exist
   this.listenTo(this.core, Events.CORE_READY, this.bindPlaybackEvents)
}
bindPlaybackEvents() {
  this.listenTo(this.core.container, Events.CONTAINER_X, this.myHandler)
}

0.2.27

16 Dec 17:19

Choose a tag to compare

  • tons of refactorings: seek time (became a core plugin), dvr controls, container, core and etc.
  • new plugin SourcesPlugin to handle multi sources
  • allows overriding loader component
  • adds 'events' property to options
new Clappr.Player({
//... now you also subscribe to player events using options
events: {
   "onPlay": function() { },
   "onError": function() { },
}
})
  • updates documentation
  • new event: CORE_CONTAINERS_CREATED
  • events changed: PLAYBACK_LEVELS_AVAILABLE (with additional parameter initial level)
  • faster start up #696 (canplay fires bufferfull)
  • lots of fixes

0.2.25

10 Dec 18:13

Choose a tag to compare

  • fixes player.configure to don't recreate containers every time
  • new events: CORE_READY and PLAYER_READY
  • updates hls.js to v0.3.9
  • updates flashls to v0.4.4.16

0.2.24

08 Dec 19:15

Choose a tag to compare

  • updates hls.js to v0.3.5
  • updates flashls
  • new events: PLAYBACK_STOP, PLAYBACK_LEVELS_AVAILABLE, PLAYBACK_LEVEL_SWITCH_START, PLAYBACK_LEVEL_SWITCH_END, CONTAINER_OPTIONS_CHANGE and CORE_OPTIONS_CHANGE
  • fixes: #651, resize observer leak
  • adds options actualLiveTime, autoSeekFromUrl
  • enables upload of external plugins on cdn.clappr.io
  • adds flashls configuration parameter #707
  • adds wmode property to flash base playback
  • HTML5VideoPlayback have priority over HTML5AudioPlayback
  • adds the possibility to reconfigure the player after its instantiation configure

Changes to API

-UIContainerPlugin(options)
+UIContainerPlugin(container)

-ContainerPlugin(options)
+ContainerPlugin(container)

Heads up

When you need to access any of the options please use: this.options (on xContainer plugins) and this.core.options (on xCore plugins).

Usage examples:

player.configure({poster: 'newPoster.jpg'}) //will change the poster
player.configure({src: 'newSource'}) //will load the new media

seeking seconds by default

01 Dec 13:10

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

Choose a tag to compare

standardize events

25 Nov 13:40

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

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