fix #1170
parent
70ab0ae80b
commit
e19931abab
|
@ -3501,7 +3501,9 @@
|
||||||
|
|
||||||
// If there are media elements with data-autoplay,
|
// If there are media elements with data-autoplay,
|
||||||
// automatically set the autoSlide duration to the
|
// automatically set the autoSlide duration to the
|
||||||
// length of that media
|
// length of that media. Not applicable if the slide
|
||||||
|
// is divided up into fragments.
|
||||||
|
if( currentSlide.querySelectorAll( '.fragment' ).length === 0 ) {
|
||||||
toArray( currentSlide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
|
toArray( currentSlide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
|
||||||
if( el.hasAttribute( 'data-autoplay' ) ) {
|
if( el.hasAttribute( 'data-autoplay' ) ) {
|
||||||
if( autoSlide && el.duration * 1000 > autoSlide ) {
|
if( autoSlide && el.duration * 1000 > autoSlide ) {
|
||||||
|
@ -3509,6 +3511,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
// Cue the next auto-slide if:
|
// Cue the next auto-slide if:
|
||||||
// - There is an autoSlide value
|
// - There is an autoSlide value
|
||||||
|
|
Loading…
Reference in New Issue