diff options
author | Markku Roponen <markku.roponen@valve.fi> | 2016-12-13 16:02:26 +0200 |
---|---|---|
committer | Markku Roponen <markku.roponen@valve.fi> | 2016-12-13 16:02:26 +0200 |
commit | 962c6c133b0860b5ad4d99d9fb36eca625de5b7a (patch) | |
tree | 8bed462d06c541d44447fd16a84743f03d51e497 | |
parent | da40eafccd1e62f5754069edc2ddc4706055b2ff (diff) | |
download | perl-software-in-gnu-guix-962c6c133b0860b5ad4d99d9fb36eca625de5b7a.tar perl-software-in-gnu-guix-962c6c133b0860b5ad4d99d9fb36eca625de5b7a.tar.gz |
#1770, set 'data-paused-by-reveal' attribute only for the media elements, which are not already in paused state.
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index c8ce5a2..6781639 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3071,7 +3071,7 @@ if( slide && slide.parentNode ) { // HTML5 media elements toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) { - if( !el.hasAttribute( 'data-ignore' ) && typeof el.pause === 'function' ) { + if( !el.hasAttribute( 'data-ignore' ) && typeof el.pause === 'function' && el.paused === false ) { el.setAttribute('data-paused-by-reveal', ''); el.pause(); } |