No Concurrent Video

Categories

Component ID

2879221

Component name

No Concurrent Video

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

274

Component created

Component changed

Component body

This is a very simple module that prevents multiple HTML 5 videos from playing on a page, provided the elements have the 'video' (the default setting) class assigned to them.

To use: make sure all HTML 5 <video> tags on a page are assigned a class of 'video' (e.g., <video src="myvideo.mov" class="video"></video>), or assigned a custom class name as defined in the module's settings ('No Concurrent Video Settings' from Drupal's configuration page).

That's it! Now whenever you start another video, any previously playing video is paused, preventing more than one video from playing at once on a single page.