Skip to content

0.3.0

Compare
Choose a tag to compare
@towerz towerz released this 12 Nov 21:41

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 and activeContainer properties, replacing the current getCurrentPlayback() and getCurrentContainer() 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 the activeContainer on the Core instance, so whatever references to core.mediaControl.container should be changed to core.activeContainer instead.
  • events: new events were added (CORE_ACTIVE_CONTAINER_CHANGED, CORE_MOUSE_MOVE/CORE_MOUSE_LEAVE) to replace the MediaControl related ones. The old events have been kept for backwards compatibility, but will be removed in future versions.