Skip to Content


Add applicable Youtube videos to the Nebula players object.

JavaScript February 7, 2021


This function runs automatically, so it is not called manually. Is this incorrect?


Automatically play a video when a Bootstrap modal opens.

jQuery(document).on('', function(e){
    vidID = jQuery('iframe').attr('id');[vidID].playVideo();

Additional Notes

This function is called via the Google Youtube Iframe API when it is ready.

Was this page helpful? Yes No

    A feedback message is required to submit this form.

    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    This function was not found in /assets/js/modules/video.js. Please report this error.

    No Hooks

    This function does not have any filters or actions available. Request one?


    To override or disable this JavaScript function, simply redeclare it with the exact same function name. Remember: Some functionality is conditionally loaded via dynamic imports, so if your function is not overriding properly, try listening for a DOM event (described below).

    function onYouTubeIframeAPIReady(){
        //Write your own code here, leave it blank, or return false.