Block the pre app init function to show the full Splash screen video?

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I have a three video which i want to play in the splash screen . But according to the docs ,"Splash video occupies the time between start of the application till the initialization of the application. Once the application gets initialized, it ends the video (even if it is not complete) and launches the application. "

Is there any way i can block this 3 second time to ensure the video plays fully before the app loads ?

Hello @Rose Butlew​

Define pre app init event in the application and let the event execute the following function. This function make sure that the pre app init gets executed for the specified video duration so that on foreground you will see the video running to the full duration.

In the below give code snippet, we have set the video duration is 15 sec.

function forceDelayTheApplication() {

var videoDuration = 15;

var baseTimeInSeconds = new Date().getTime() / 1000;

var currentTimeInSeconds = baseTimeInSeconds;

while (currentTimeInSeconds - baseTimeInSeconds < videoDuration)

{

currentTimeInSeconds = new Date().getTime() / 1000;

}

}