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
Speegs  
#1 Posted : Saturday, September 26, 2015 9:47:48 PM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
Hello Martin,

Could you add the following to be turned on via the VMix settings so the VMix Web Server API adds this header to it's HTTP responses?

Add to response header rule - 'Access-Control-Allow-Origin: *'

I've done some work with some JQuery and Ajax controlling Vmix, but the without this security tag, browsers keep flagging them as a problem and sometimes blocking the request.

After some research and testing with an IIS server it's as simple as adding this header into the web server's config. However as far as I'm aware there is currently NO WAY to modify the inbuilt web server that VMix uses for it's API/Web Control.

Thanks, if anyone has a better way eg: a hack the Vmix web server I'm all ears :)

It is actually really cool you can design your own home brew web controller to do uncommon things. Like allow a person to be in an iPad turning on/off a single Vmix title without access to anything else :) Your imagination and the commands in the API are the limit.
admin  
#2 Posted : Monday, September 28, 2015 11:40:04 AM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,208
Man
Location: Gold Coast, Australia

Was thanked: 4288 time(s) in 1520 post(s)
Just added support in vMix 16.0.0.86, download it via vMix Update.
Speegs  
#3 Posted : Tuesday, September 29, 2015 4:30:26 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
admin wrote:
Just added support in vMix 16.0.0.86, download it via vMix Update.

Thanks that will be very handy for me and possibly anyone else using Ajax xml functions with the api.
Speegs  
#4 Posted : Tuesday, September 29, 2015 4:47:01 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
Here is some code I can share.

You can host it on any web server (or on a local drive with some modifications for JQuery) and it will allow you to setup some overlay controls. The big buttons now get a white border once it's confirmed Vmix received the command and applied the overlay.

Two files and .html and a .js file are required. Enjoy, it was based on some code I was directed to on the forum and modified towards my own purposes. I hope it helps someone else who want to either use it as is and/or as a basis to build their own web control to do something else. Not that there is anything wrong with the web controller in Vmix. There are just times when you want to create a REALLY simple restricted controller to do essentially a couple of specific things.
File Attachment(s):
vMixOverlayController.zip (3kb) downloaded 38 time(s).

You cannot view/download attachments. Try to login or register.
Speegs  
#5 Posted : Tuesday, September 29, 2015 7:20:13 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
FYI.. The current code needs to live on a web server, because it uses cookies to store it's settings.

May not work well with Firefox, try your luck on that.
doggy  
#6 Posted : Tuesday, September 29, 2015 8:49:46 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Hi Speegs

For local needs (or if one doen't have server) I placed it in local USBwebserver together with the appropriate jquery file.(adjusted the html reference to <script src="jquery-1.11.2.min.js"></script>)

Sweet :-)

Guy



Speegs  
#7 Posted : Tuesday, September 29, 2015 10:46:13 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
doggy wrote:
Hi Speegs

For local needs (or if one doen't have server) I placed it in local USBwebserver together with the appropriate jquery file.(adjusted the html reference to <script src="jquery-1.11.2.min.js"></script>)

Sweet :-)

Guy





Using Javascript HTML5 localStorage (I'm new to this, but apparently might be better as not using cookies). Included JQuery as well so seems good to go for running from disk with no server. Be sure to provide feedback. Requires latest Vmix to work best.
File Attachment(s):
vMixOverlayController(4).zip (36kb) downloaded 27 time(s).

You cannot view/download attachments. Try to login or register.
thanks 1 user thanked Speegs for this useful post.
r@wisla on 9/29/2015(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.