docs/source/_static/presentations/js/reveal.js
/**
	 * Start playback of any embedded content inside of
	 * the targeted slide.
	 */
Start playback of any embedded content inside of
the targeted slide.
Start playback of any embedded content inside of the targeted slide .
function startEmbeddedContent( slide ) {
		if( slide && !isSpeakerNotes() ) {
			toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
				if( el.hasAttribute( 'data-autoplay' ) ) {
					el.play();
				}
			} );
			toArray( slide.querySelectorAll( 'iframe' ) ).forEach( function( el ) {
				el.contentWindow.postMessage( 'slide:start', '*' );
			});
			toArray( slide.querySelectorAll( 'iframe[src*="youtube.com/embed/"]' ) ).forEach( function( el ) {
				if( el.hasAttribute( 'data-autoplay' ) ) {
					el.contentWindow.postMessage( '{"event":"command","func":"playVideo","args":""}', '*' );
				}
			});
		}
	}
function startEmbeddedContent ( slide ) { if ( slide && ! isSpeakerNotes ( ) ) { toArray ( slide . querySelectorAll ( 'video, audio' ) ) . forEach ( function ( el ) { if ( el . hasAttribute ( 'data-autoplay' ) ) { el . play ( ) ; } } ) ; toArray ( slide . querySelectorAll ( 'iframe' ) ) . forEach ( function ( el ) { el . contentWindow . postMessage ( 'slide:start' , '*' ) ; } ) ; toArray ( slide . querySelectorAll ( 'iframe[src*="youtube.com/embed/"]' ) ) . forEach ( function ( el ) { if ( el . hasAttribute ( 'data-autoplay' ) ) { el . contentWindow . postMessage ( '{"event":"command","func":"playVideo","args":""}' , '*' ) ; } } ) ; } }
Start playback of any embedded content inside of
 the targeted slide.
Start playback of any embedded content inside of the targeted slide .
// HTML5 media elements // iframe embeds // YouTube embeds