Skip to content
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

Autoplay and Play/Pause Button #10

Open
boilerpa opened this issue May 9, 2018 · 1 comment
Open

Autoplay and Play/Pause Button #10

boilerpa opened this issue May 9, 2018 · 1 comment

Comments

@boilerpa
Copy link

boilerpa commented May 9, 2018

I have removed the autoplay attribute because I don't want the video to autoplay. I also want to show the play/pause button. However, it still shows the pause button by default, therefore, I have to push the button twice to make it play the first time. Is there a way to initially set the video to pause and display the play/pause control correctly?

@GusRuss89
Copy link
Contributor

You'd have to edit the plugin. Try changing line 55 to this (untested).

var $pauseplay = $('<button class="jquery-background-video-pauseplay play"><span>Play</span></button>');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants