logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
richardgatarski  
#1 Posted : Wednesday, September 22, 2021 4:52:00 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,837
Location: Stockholm

Thanks: 144 times
Was thanked: 297 time(s) in 250 post(s)
Both with a Shortcut (e.g. D1) and http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A08%3A00
Below one minute (e.g. 00:02:00, and 00:07:00) works fine, but not above seven minutes (e.g. 00:08:00 and 00:10:00)

SetCountdown works slightly better. Besides, I really don't understand the diff Set vs Change ;) But ChangeCountdown will display the time I want without the timer running. That is, I want to set a timer with an API shortcut, get visual feedback of what I have set it to, and then another shortcut to start the countdown.

Any ideas?
Thanks.

doggy  
#2 Posted : Wednesday, September 22, 2021 5:29:03 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Seems to work fine here (both)

&Value=01%3A33%3A05
&Value=01:33:05

Believe ChangeCountdown is to change the displayed time ( running or not) setting time remains same as set by SetCountdown
doggy  
#3 Posted : Wednesday, September 22, 2021 5:34:59 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
BTW

Regarding HTML URL Encoding it seems only the first character after the equal sign is important ( but yeah better safe than sorry )

http://127.0.0.1:8088/api/?Function=SetText&Input=Timer&SelectedName=Description.Text&Value=%2B%3D5
http://127.0.0.1:8088/api/?Function=SetText&Input=Timer&SelectedName=Description.Text&Value=%2B=5

work fine

http://127.0.0.1:8088/api/?Function=SetText&Input=Timer&SelectedName=Description.Text&Value=+=5

Is wrong
richardgatarski  
#4 Posted : Wednesday, September 22, 2021 5:41:44 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,837
Location: Stockholm

Thanks: 144 times
Was thanked: 297 time(s) in 250 post(s)
thx Doggy! I think (wild guess) my issue is related to some regional setting in Windows, and how vMix parse the value...
doggy  
#5 Posted : Wednesday, September 22, 2021 5:51:35 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: richardgatarski Go to Quoted Post
thx Doggy! I think (wild guess) my issue is related to some regional setting in Windows, and how vMix parse the value...


a bit like Excel can mess (CSV ; instead of , ) things up due to regional settings ;-)
richardgatarski  
#6 Posted : Monday, October 4, 2021 1:57:27 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,837
Location: Stockholm

Thanks: 144 times
Was thanked: 297 time(s) in 250 post(s)
Hmmm doggy,
Whereas SetText works fine, I am trying to get ChangeCountdown working - and this one REALLY annoys me...

To sum up my findings, to me there seems to be a couple of bugs here:
1. The Countdown has to be started before ChangeCountdown has any effect at all.
2. It is not possible to change to a time above the time that was "manually" set before the countdown was started. This is true for hh, mm, and ss respectively. That is, if hh is initially set to 01 one change change it to 02 (with ChangeCountdown).


Adding Timer Centre.gtzip, changing it´s name to just Timer and the following happens.

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A01%3A00
result, just showing the clock

Then, setting 00:02:00 in the Title Editor and starting the Countdown
http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A01%3A00
result, counting down from 00:00:59

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A02%3A00
result, counting down from 00:01:59

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A03%3A00
result, counting down from 00:01:59 (yes 01:59, not 02:59 as excpected

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A04%3A00
result, counting down from 00:01:59

Stopping the clock now shows 00:00:00, then

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A01%3A00
result, shows 00:01:00

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A02%3A00
result, shows 00:02:00

http://127.0.0.1:8088/api/?Function=ChangeCountdown&Input=Timer&SelectedName=Time.Text&Value=00%3A03%3A00
result, shows 00:02:00

Closing the Title, adding and renaming it again and the instead of 00:02:00 set 00:25:00 and start countdown will work for all minuts less than or equal to 00:25:00. Minutes above that are treated as 00:25:00


Please prove me wrong ;)
doggy  
#7 Posted : Monday, October 4, 2021 2:39:35 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
a quick check

AdjustCountdown:
add/subtract seconds to the running time , blocks to end time if going past the initial set time. With clock not running wil show set time (end)

SetCountdown:
Changes the initial countdown time , when clock running will show time based on new set time with already past time subtracted
To start countdown again from new set time stop countdown first and start again.

ChangeCountdown:
With running clock will restart countdown from the changed time. does not affect the initial set time. if clock not running no effect, next start will be from original set time
thanks 3 users thanked doggy for this useful post.
stigaard on 10/4/2021(UTC), TL68 on 12/13/2022(UTC), Locke on 2/5/2024(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.