vMix Forums
	 » 
	General
	 » 
	Feature Requests
	 » 
	Trigger on Preview in/out
	 
	
        
            
            
    | 
	Rank: Member
 Groups: Registered
 Joined: 6/22/2020(UTC) Posts: 14  Location: LeipzigThanks: 1 timesWas 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
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 4/23/2017(UTC) Posts: 1,382  Location: GermanyThanks: 3 timesWas thanked: 185 time(s) in 165 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 | 
    | 
              1 user thanked mavik for this useful post. |  | 
    |  | 
        
        
        
    
        
            
            
    | 
	Rank: Member
 Groups: Registered
 Joined: 6/22/2020(UTC) Posts: 14  Location: LeipzigThanks: 1 timesWas 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".
 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
            
        
            
            
    | 
	Rank: Advanced Member
 Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,448  Location: BelgiumThanks: 311 timesWas thanked: 1006 time(s) in 830 post(s)
 
 | 
            
		      
                Originally Posted by: mjehnichen  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 | 
    | 
             | 
            
         | 
    |  | 
        
        
        
    
                           
	vMix Forums
	 » 
	General
	 » 
	Feature Requests
	 » 
	Trigger on Preview in/out
	 
	
    
        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.
	
	
    
    
        Important Information:
        The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
        
        
More Details
        Close