diff --git a/js/reveal.js b/js/reveal.js index 88bf4ac6..eb9e45df 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3376,6 +3376,13 @@ _appendParamToIframeSource( 'src', 'player.vimeo.com/', 'api=1' ); _appendParamToIframeSource( 'data-src', 'player.vimeo.com/', 'api=1' ); + // Always show media controls on mobile devices + if( isMobileDevice ) { + toArray( dom.slides.querySelectorAll( 'video, audio' ) ).forEach( function( el ) { + el.controls = true; + } ); + } + } /**