Skip to content

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

@mldaq

Description

@mldaq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions