diff options
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index 88bf4ac..eb9e45d 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; + } ); + } + } /** |