|
@@ -3071,7 +3071,7 @@
|
|
if( slide && slide.parentNode ) {
|
|
if( slide && slide.parentNode ) {
|
|
// HTML5 media elements
|
|
// HTML5 media elements
|
|
toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
|
|
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.setAttribute('data-paused-by-reveal', '');
|
|
el.pause();
|
|
el.pause();
|
|
}
|
|
}
|