forked from blallo/talk-hm-0x15
always show media controls on mobile devices
This commit is contained in:
parent
56504b50a9
commit
4a4719b587
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue