Skip to content

Releases: stamat/youtube-background

v1.0.11

30 Nov 22:51
15e21d6
Compare
Choose a tag to compare

Introduced end-at property so you can set the at what time (in seconds) the video will end. The default value, 0, means video will play to the end. This way you can create short loops from youtube video backgrounds.

v1.0.10

13 Nov 17:01
4b84ba8
Compare
Choose a tag to compare
  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...

v1.0.9

11 Nov 21:19
6d53a62
Compare
Choose a tag to compare
  • 'start-at' property introduced - now you can set in seconds when the background video will start
  • Fixed issue #28

v1.0.8

28 Mar 00:46
Compare
Choose a tag to compare
  • Development setup with GULP and Rollup to separate code in ES modules and generate IIFE script as well to minify it
  • fit-box property by @Spudley
  • inline-styles property by @reddo
  • Webpack encore support fix by @Quetzalfir

v1.0.7

26 Mar 18:36
Compare
Choose a tag to compare

A bit of refactoring and bug fixes + preparation for future extensions

v1.0.6

26 Mar 00:50
Compare
Choose a tag to compare

#8 Due to Youtube API event.target property naming changes the video was no longer resizing because the target iFrame could no longer be found.

This problem indicated a much larger problem in maintainability of the code, so the code was heavily refactored in vanilla JS to support future expansions and upgrades.

The script now injects the embed iFrame instead of YT Player API doing it, which solves the noted issue

Another problem arose due injecting the iFrame, the unMute ability is lost due https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
Which will be solved in the next few days.

v1.0.4

14 Dec 23:38
Compare
Choose a tag to compare

#4 mute-button, load muted, autoplay and loop options added; "pause" renamed to "play-button" and depricated

v1.0.3

05 Dec 17:22
Compare
Choose a tag to compare

Multiple plugin triggers enabled, fixed late triggers after the Youtube iFrame API loaded event
Option to hide video on mobile
Option to pull default video image as a background from youtube
Option to pause the background video cause of motion sickness #3 suggested by @djmtype
Options as html attributes

v1.0.2

08 Aug 21:40
Compare
Choose a tag to compare

I'm special ;D

v1.0.1

08 Aug 21:29
Compare
Choose a tag to compare

No rel on video + housekeeping