- Fix to ensure components will respect any initial
data-playback-state
attribute value- This means autoplay-like behavior can be achieved by setting
data-playback-state="playing"
in your HTML
- This means autoplay-like behavior can be achieved by setting
- Tightens up quirky behavior where duplicate
hoverstart
events could be emitted on mobile
- Fix
hoverstart
andhoverend
events not being emitted when the component is controlled; the events should fire but just be automatically canceled to leave playback state updates to the implementer - Make
hoverstart
andhoverend
events include the originatingEvent
object on theirdetail
- Makes
hoverstart
andhoverend
events cancelable for more options with controlling playback - Allows
hoverstart
andhoverend
events to still be emitted when the component is controlled; the component just won't update playback state in response to these events
- Adds
playbackstatechanged
event - Tightens up internal playback state update logic
- Adds
controlled
attribute to enable controlling playback with external JS only - Adds
hover
andblur
methods which can be called to programmatically start/stop playback - Makes component state response to external updates to
data-playback-state
attribute as another means of controlling playback state