Merge pull request #1851 from astone123/master
Fix data-background-video autoplay on iOS Safari
This commit is contained in:
commit
2289b92961
|
@ -1462,7 +1462,7 @@
|
||||||
* target element.
|
* target element.
|
||||||
*
|
*
|
||||||
* remaining height = [ configured parent height ] - [ current parent height ]
|
* remaining height = [ configured parent height ] - [ current parent height ]
|
||||||
*
|
*
|
||||||
* @param {HTMLElement} element
|
* @param {HTMLElement} element
|
||||||
* @param {number} [height]
|
* @param {number} [height]
|
||||||
*/
|
*/
|
||||||
|
@ -3113,6 +3113,8 @@
|
||||||
// Videos
|
// Videos
|
||||||
else if ( backgroundVideo && !isSpeakerNotes() ) {
|
else if ( backgroundVideo && !isSpeakerNotes() ) {
|
||||||
var video = document.createElement( 'video' );
|
var video = document.createElement( 'video' );
|
||||||
|
video.setAttribute( 'autoplay', '' );
|
||||||
|
video.setAttribute( 'playsinline', '' );
|
||||||
|
|
||||||
if( backgroundVideoLoop ) {
|
if( backgroundVideoLoop ) {
|
||||||
video.setAttribute( 'loop', '' );
|
video.setAttribute( 'loop', '' );
|
||||||
|
|
Loading…
Reference in New Issue