Releases: mderrick/react-html5video
2.3.0
v2.0.0
Version 2 is here!
There are some considerable changes in this version as there are now two distinct products.
The DefaultPlayer
There is a default video component that can be used right off the bat. This can be embedded into your application and customised slightly as per the documentation. These customisations are simple. Larger customisations should use the higher order component.
The HoC
The higher order component is what powers the DefaultPlayer
. The main goal of v2 is that developers will use the HoC to access all the HTMLMediaElement properties in their custom component in a simplified and concise way keeping presentation separate from implementation. In essence it behaves much like react-redux connect does but instead of connecting your component to store state and dispatch; it instead connects your component to all HTMLMediaElement properties and the HTML5 video element itself.
All changes:
-
No more magic! Custom controls are no longer provided as children to the
<Video/>
where we automagically provide the HTMLMediaElement properties as props. This is the biggest change that means the API to use v2 is now completely different and not backwards compatible. Apologies but we needed to move towards better composability. -
We now offer a higher order component as described above.
-
Small design changes to the DefaultPlayer.
-
Everything is now thoroughly tested.
-
The development and deployment process has been improved. It is much easier for others to develop and also much easier for myself to publish. We will be deploying more iteratively and more often. I promise to fix more bugs.
-
Bower has gone because bower is dead.
-
We now use CSS modules. It's very unlikely you will have a CSS class clash with the DefaultPlayer. This does mean it is not possible to customise with CSS alone but this is good news as it means you will probably use the HoC to make your own custom videos which is much better.
-
Captions support added to DefaultPlayer.
Release 1.4.0
- Playback speed API