0.3.0
This release has a number of internal changes, so it may contain some unforeseen breaking changes. Please run some tests carefully before updating.
There were some events and properties that were changed on the main player components (Core
, Container
, MediaControl
). We tried to keep all changes backwards compatible, so most plugins will work unchanged.
About the MediaControl
, it has been changed into a UICorePlugin
itself. So in order to replace it, one just needs to provide another plugin with the media_control
name property, to be used as key for the Loader
registry.
The changes in this release pave the way for the next iteration in the Clappr architecture, which will make it easier to have a smaller codebase for creating new players (clappr-core
), as well as customizing the player itself or its controls.
Features
- core: added the
activePlayback
andactiveContainer
properties, replacing the currentgetCurrentPlayback()
andgetCurrentContainer()
respectively. Those methods were kept for backwards compatibility, but we recommend to use the new references as soon as possible. - media_control: it has been changed into an
UICorePlugin
. Now it references theactiveContainer
on theCore
instance, so whatever references tocore.mediaControl.container
should be changed tocore.activeContainer
instead. - events: new events were added (
CORE_ACTIVE_CONTAINER_CHANGED
,CORE_MOUSE_MOVE/CORE_MOUSE_LEAVE
) to replace theMediaControl
related ones. The old events have been kept for backwards compatibility, but will be removed in future versions.