Added events on play/pause and mute/unmute actions
video-background-play - video starts playing
video-background-pause - video is paused
video-background-mute - video sound is muted
video-background-unmute - video sound is unmuted
Events bubble. If you go vanilla, you can get the video object via event.detail.
Source element, the one with attribute data-youtube is no longer being replaced by a new element wrapping the iframe, but it becomes the wrapper instead. This way we can correctly listen to events.
Fixed pause/play bug caused by carelessly introducing the start-at feature...
Events bubble. If you go vanilla, you can get the video object via
event.detail
.data-youtube
is no longer being replaced by a new element wrapping the iframe, but it becomes the wrapper instead. This way we can correctly listen to events.start-at
feature...