Releases: clappr/clappr
Releases · clappr/clappr
0.2.30
- lots of refactorings & fixes
- updates hls.js dependency
- updates flashls dependency
- adds
endedproperty to: playback, container and player - adds
maxSkippedFragmentsto flashls
0.2.29
- now you can pass a list of plugins (instead of knowing how they work internally)
-- { plugins: { core: [], container: []}
++{ plugins: []}
0.2.28
Changelog
- adds isReady property to all playbacks
- adds end video plugin
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
- tons of refactorings: seek time (became a core plugin), dvr controls, container, core and etc.
- new plugin
SourcesPluginto 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 parameterinitiallevel) - faster start up #696 (canplay fires bufferfull)
- lots of fixes
0.2.25
- fixes
player.configureto don't recreate containers every time - new events:
CORE_READYandPLAYER_READY - updates
hls.jsto v0.3.9 - updates
flashlsto v0.4.4.16
0.2.24
- 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_CHANGEandCORE_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 mediaseeking seconds by default
- updates hlsjs to v0.3.3
- fixes CI and send data to coveralls
- increases overall test coverage and documentation
- adds
seekPercentageto all the playbacks and player - adds
playbackNotSupportedMessageoptions 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