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
mjehnichen  
#1 Posted : Wednesday, August 25, 2021 3:49:06 AM(UTC)
mjehnichen

Rank: Member

Groups: Registered
Joined: 6/22/2020(UTC)
Posts: 11
Germany
Location: Leipzig

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
when a input becomes "Preview" it shall trigger another event (e.g. Tally green on a non NDI camera via CGI-Script via browswer reload).

thanks
martin
mavik  
#2 Posted : Tuesday, September 7, 2021 1:19:04 AM(UTC)
mavik

Rank: Advanced Member

Groups: Registered
Joined: 4/23/2017(UTC)
Posts: 1,146
Man
Location: Germany

Thanks: 3 times
Was thanked: 166 time(s) in 148 post(s)
Just open http://127.0.0.1:8088/api/ and check the preview section. You will get the input number that is on preview. To set it use http://127.0.0.1:8088/api/?function=previewinput&input=1
thanks 1 user thanked mavik for this useful post.
doggy on 9/7/2021(UTC)
mjehnichen  
#3 Posted : Sunday, October 3, 2021 2:13:13 AM(UTC)
mjehnichen

Rank: Member

Groups: Registered
Joined: 6/22/2020(UTC)
Posts: 11
Germany
Location: Leipzig

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Hi Mavik, thanks for your help but either i did not understand the answer or maybe i did not pose the question right.

I want to trigger an event when an input becomes preview. For example: if input1 goes into preview it shall reload browser input2 with an api call to turn on the green LED on my Panasonic PTZ-cam.
How can i achieve this?
Within VMIX there are only triggers for "on transition in" etc. but not for "becomes preview".
doggy  
#4 Posted : Sunday, October 3, 2021 3:39:11 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 284 times
Was thanked: 922 time(s) in 761 post(s)
Originally Posted by: mjehnichen Go to Quoted Post
Hi Mavik, thanks for your help but either i did not understand the answer or maybe i did not pose the question right.

I want to trigger an event when an input becomes preview. For example: if input1 goes into preview it shall reload browser input2 with an api call to turn on the green LED on my Panasonic PTZ-cam.
How can i achieve this?
Within VMIX there are only triggers for "on transition in" etc. but not for "becomes preview".


What Mavik is saying is one can set an input into preview with http://127.0.0.1:8088/api/?function=previewinput&input=1 ( or using a shortcut) and combine that with other actions (simulating a trigger)

Reading the API XML one can check which input is in preview. A script can do that and act upon this for giving more commands
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.