stamat / youtube-background

ESM / jQuery plugin for creating video backgrounds from YouTube, Vimeo or video file links.
https://stamat.github.io/youtube-background/
MIT License
173 stars 54 forks source link

v1.0.10 #30

Closed stamat closed 2 years ago

stamat commented 2 years ago
  1. 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.

  1. 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.
  2. Fixed pause/play bug caused by carelessly introducing the start-at feature...