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

Add functionality to stop all audio and video when moving to next element/block #11

Open
mldaq opened this issue Jul 21, 2017 · 0 comments

Comments

@mldaq
Copy link

mldaq commented Jul 21, 2017

Audio and video keeps playing when you move to the next block if pause or stop is not clicked. I added the following code to (adapt-contrib-blockslider.js) my own version of this extension and it seemed to do the trick:

In the navigateClick: function (event) and navigateTab: function (event) -

//Added to stop all videos and audio on click
$('video,audio').each(function() {
$(this)[0].pause();
});

Not sure if we want to consider this in the extension. This only works for the media component - looking for solution with iframe.

@oliverfoster - not sure the process here - so if you could take a look

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

1 participant