Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delayed end to launchVideo #3

Open
csdf27 opened this issue Jun 30, 2023 · 0 comments
Open

Add delayed end to launchVideo #3

csdf27 opened this issue Jun 30, 2023 · 0 comments

Comments

@csdf27
Copy link

csdf27 commented Jun 30, 2023

I have zero javascript knowledge so forgive me if this is a stupid question, but I wanted to introduce a delay to the video stop event to account for the fact that even once VPX has started, nothing appears on screen for a few more seconds, and I want the loading video to continue to be visible for that time. My attempt was to change the myGameStarted function to the following (for a 3 second delay):
function myGameStarted(ev) {
setTimeout(mainWindow.launchOverlay.bg.clear(0xff000000),3000);
}
But this appears to have zero effect. An alternative was just to comment out the gamestarted event hook entirely, which works fine except I think video continues running in the background somewhere which is a bit wasteful. And when you exit the table, the loading video briefly reappears again.

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant