Skip to content

Commit 2217951

Browse files
committed
Auto-start OBS from the countdown
we'll have to open it in its own tab but it should be workable
1 parent afc100b commit 2217951

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

countdown_page.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ timeRef.on('value', function (v) {
88
if ($.isNumeric(streamStart) && streamStart > 0) {
99
timerId = countdown(streamStart, function (ts) {
1010
$(".countdown").text(ts.minutes + ":" + ("0" + ts.seconds).slice(-2));
11+
// Magic string for auto-starting OBS
12+
if (ts.value >= 0) {
13+
window.document.title = "ULB GO GO GO GO";
14+
} else {
15+
window.document.title = "countdown";
16+
}
1117
});
1218
} else {
1319
$(".countdown").text("");

0 commit comments

Comments
 (0)