-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I listen for the "video-background-play" event and other events? #51
Comments
Same here,
Nothing happens. |
Can you add this line after
so it looks like this:
Then we can get any player stateChange events like this:
Look for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry to open this issue, but I can't seem to pick up any events being dispatched by the
YoutubeBackground
class, through theVideoBackgrounds
class.I'm initialising like this:
const videoBackground = new VideoBackgrounds('[data-vbs]');
And I've tried listening for the
video-background-play
event via various methods:and so on...
I can see that the
YoutubeBackground
class is dispatching these events, for example: https://github.com/stamat/youtube-background/blob/master/src/youtube-background.js#L130But I can't pick them up it seems!...
Any help much appreciated, many thanks.
The text was updated successfully, but these errors were encountered: