always show media controls on mobile devices

edit
Hakim El Hattab 2017-10-04 11:13:09 +02:00
parent 56504b50a9
commit 4a4719b587
1 changed files with 7 additions and 0 deletions

View File

@ -3376,6 +3376,13 @@
_appendParamToIframeSource( 'src', 'player.vimeo.com/', 'api=1' ); _appendParamToIframeSource( 'src', 'player.vimeo.com/', 'api=1' );
_appendParamToIframeSource( 'data-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;
} );
}
} }
/** /**