|
@@ -3809,13 +3809,6 @@
|
|
_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' );
|
|
|
|
|
|
-
|
|
|
|
- if( isMobileDevice ) {
|
|
|
|
- toArray( dom.slides.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
|
|
|
|
- el.controls = true;
|
|
|
|
- } );
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -3859,7 +3852,20 @@
|
|
|
|
|
|
|
|
|
|
else if( isMobileDevice ) {
|
|
else if( isMobileDevice ) {
|
|
- el.play();
|
|
+ var promise = el.play();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if( promise && typeof promise.catch === 'function' && el.controls === false ) {
|
|
|
|
+ promise.catch( function() {
|
|
|
|
+ el.controls = true;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ el.addEventListener( 'play', function() {
|
|
|
|
+ el.controls = false;
|
|
|
|
+ } );
|
|
|
|
+ } );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
else {
|
|
else {
|