core/js/lib/jquery/plugins/fullpage/fullpage.js
/**
        * Stops video and audio elements.
        */
Stops video and audio elements.
Stops video and audio elements .
function stopMedia(destiny) {
            var panel = getSlideOrSection(destiny);
            panel.find('video, audio').each(function () {
                var element = $(this).get(0);
                if (!element.hasAttribute('data-keepplaying') && typeof element.pause === 'function') {
                    element.pause();
                }
            });
            panel.find('iframe[src*="youtube.com/embed/"]').each(function () {
                var element = $(this).get(0);
                if (/youtube\.com\/embed\//.test($(this).attr('src')) && !element.hasAttribute('data-keepplaying')) {
                    $(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
                }
            });
        }
function stopMedia ( destiny ) { var panel = getSlideOrSection ( destiny ) ; panel . find ( 'video, audio' ) . each ( function ( ) { var element = $ ( this ) . get ( 0 ) ; if ( ! element . hasAttribute ( 'data-keepplaying' ) && typeof element . pause === 'function' ) { element . pause ( ) ; } } ) ; panel . find ( 'iframe[src*="youtube.com/embed/"]' ) . each ( function ( ) { var element = $ ( this ) . get ( 0 ) ; if ( / youtube\.com\/embed\/ / . test ( $ ( this ) . attr ( 'src' ) ) && ! element . hasAttribute ( 'data-keepplaying' ) ) { $ ( this ) . get ( 0 ) . contentWindow . postMessage ( '{"event":"command","func":"pauseVideo","args":""}' , '*' ) ; } } ) ; }
Stops video and audio elements.
Stops video and audio elements .
//stopping HTML5 media elements //youtube videos