var medias = Array.prototype.slice.apply(document.querySelectorAll('audio,video'));medias.forEach(function(media) {media.addEventListener('play', function(event) {medias.forEach(function(media) {if(event.target != media) media.pause();});});}); Nicht eingeloggt