vMix Forums
»
General
»
General Discussion
»
Wix website button to call vMix API without opening new browser
Rank: Advanced Member
Groups: Registered
Joined: 6/4/2020(UTC) Posts: 33 Location: California Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
What's working: Static IP, port forwarding on my router and rule on my workstation firewall. Now I have a working button on a webpage that can call "xxx.xxx.xxx.xxx:8088/API/?Function=Fade&Duration=1000&Input=5" and launches what I want.
What's not working: The problem is, this takes the person who presses it to a "Function completed successfully." message. I'm trying to find a way to have them click this button, but not be taken off the page they are on.
I've gone down a rabbit hole of webhooks, API & cURL commands (functionality all available on Wix). However, looks like the learning curve is going to be pretty steep to figure this tiny operation out (spent 5 hours getting nowhere).
The goal is a customized page with a couple fun animated buttons where guest can launch graphics, and not be taken off the page they are on, or end up with 100 new "Function completed successfully." windows.
Thanks!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/4/2020(UTC) Posts: 33 Location: California Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
Originally Posted by: doggy Thank you. I had seen that before I posted. I downloaded it and played with it, but it seemed like extreme overkill for what I was hoping to accomplish, as I don't want to give people a control interface. I want to add one big friendly stupid button to an already existing webpage that they can click on multiple times and stay on the page. Which I have this 99% working, except when they click it, it takes them to a new "Function completed successfully." page. I'll get started on the learning curve, hopefully I can post a solution soon.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2019(UTC) Posts: 556
Thanks: 62 times Was thanked: 130 time(s) in 118 post(s)
|
I'm not sure — have you noticed that there is an option to uncheck "Show in web controller" for every shortcut you have set up? If you don't need the web controller for other purposes you can uncheck all but one shortcut.
|
1 user thanked dmwkr for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 493 Location: Copenhagen, Denmark Thanks: 389 times Was thanked: 100 time(s) in 79 post(s)
|
I cannot recommend having a direct way from the web into your internal network and vMix. If you need some kind of counter or other similar functionality. Instead i would use a gateway service, database or similar, which only exposes the specific desired functionality and not the full vMix API.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/4/2020(UTC) Posts: 33 Location: California Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
Originally Posted by: stigaard I cannot recommend having a direct way from the web into your internal network and vMix. If you need some kind of counter or other similar functionality. Instead i would use a gateway service, database or similar, which only exposes the specific desired functionality and not the full vMix API. Not sure if you’re talking to me. My plan was going to use firewall rules to allow only 4 specific people access to my forwarded port, or maybe webhost server IP if needed. Also, something I’d turn off after streaming. The functionality is for them to be able to smash big fun animated button and launch a video. It’s basically a drinking game. I have it working, except for that it opens a confirmation page. I could install cURL on their systems an make a custom icon/button that would run the API url in the bacground, yet this seemed inelegant and hard to keep on top of for 4 people, if I made changes. This is also easy to accomplish with a website button on Elgato Stream Deck & the launch in background option... but again, I’d have to help them set it up and a pain to keep updated if I made changes. A private webpage that I could just share with them seemed the most flexible.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/4/2020(UTC) Posts: 33 Location: California Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
Originally Posted by: dmwkr I'm not sure — have you noticed that there is an option to uncheck "Show in web controller" for every shortcut you have set up? If you don't need the web controller for other purposes you can uncheck all but one shortcut. Didn’t see that, interesting... thanks. Might come in handy later. Still seems like a lot to be showing the 4 idiots I’m working with, when all they need is one big fat fun button. I’ll start going through tutorials and learning API, cURL, webhooks or whatever I have to, until figure it out. Just was crossing fingers maybe somebody on here had done something like it & knew how to call the vMix API URL without opening a confirmation page.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Josemite
Didn’t see that, interesting... thanks. Might come in handy later.
Still seems like a lot to be showing the 4 idiots I’m working with,
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/4/2020(UTC) Posts: 33 Location: California Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
Originally Posted by: doggy Originally Posted by: Josemite
Didn’t see that, interesting... thanks. Might come in handy later.
Still seems like a lot to be showing the 4 idiots I’m working with,
I say 4 idiots lovingly. They are just the kind of guys that won't use anything, if there is much complexity to get in their way. When this pandemic is over, I'm going to try and get it working with a big red 'FIBARO Button' that just sits on the table in front of them.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Quote:They are just the kind of guys that won't use anything, if there is much complexity to get in their way if they can handle smaller buttons than the fibaro ones , with nice graphics of choice on them consider a Stream Deck ( it can do webinstructions )
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/4/2020(UTC) Posts: 33 Location: California Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
Originally Posted by: doggy Quote:They are just the kind of guys that won't use anything, if there is much complexity to get in their way if they can handle smaller buttons than the fibaro ones , with nice graphics of choice on them consider a Stream Deck ( it can do webinstructions ) Totally! For one of them, I am going with a 6 button Elgato Stream Deck. It really works great with the static IP API string & using the 'Access in background' check box. There is also a Stream Deck APP, for when being wired into a computer is a problem. Pretty excited about that APP, as I can give somebody else 15 easy buttons on a iPad to trigger content during a live show (which will take a lot of pressure off me).
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Wix website button to call vMix API without opening new browser
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