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
ShadowGauge  
#1 Posted : Monday, December 7, 2015 11:23:27 PM(UTC)
ShadowGauge

Rank: Newbie

Groups: Registered
Joined: 11/19/2015(UTC)
Posts: 7
Location: Denver Colorado.. USA

I am starting this topic for the newbies out there that wanna know where to start

Please post Examples of code to accomplish certain tasks..
If u are trying to figure out steps to solve a specific issue, then post your code and what
your are trying to accomplish...

!!!!!!!!PLEASE DO NOT POST QUESTIONS, ONLY PROBLEMS, EXAMPLES, AND WORKAROUNDS!!!!!!!

here is a list of api functions ran from firefox address bar to load a list, play a specific track from that list, fade into another track then properly refresh the input to avoid errors with the input key



http://192.168.1.0:8088/API?Function=Addinput&value=VideoList|c:\Users\newb\videos\rap.m3u
{loads a playlist in a blank input}{im going to reference the address prior to = as just A?F=}

A?F=Addinput&value=VideoList|c:\Users\newb\videos\rap.m3u
{this is done twice to load the same playlist into 2 decks to fade between tracks}

A?F=Selectindex&value=22&input=2
{select the video by number for the second input}

A?F=Selectindex&value=17&input=1
{for input1}
A?F=Activeinput&input=1

A?F=Previewinput&input=2
{Puts input 1 into the output box and input 2 into the preview box}
A?F=Play&input=1
{starts input 1 playing}
A?F=Fade&duration=5000
{assuming its set to start playing on transition in the general options,this will fade into input 2
over a 5 second period}

A?F=Moveinput&value=2&input=1
A?F=Removeinput&input=2
{moves input 2 to input 1..then removes the played video, this is important to avoid input key
conflicts}

A?F=Addinput&value=VideoList|c:\Users\newb\videos\rap.m3u
A?F=Selectindex&value=23&input=2
A?F=Previewinput&input=2
A?F=Fade&duration=5000
A?F=Moveinput&value=2&input=1
A?F=Removeinput&input=2

so on and so forth

I am current using java macros to run scripts via iMacro in firefox and will prolly buy iMacro ;\ i definitely recommend it though i havent tried any others...

If anyone can help me to find out how to reference the song position from vMix, or even just pull song duration from the file itself instead of typing it out that would be amazing
JAIRODJ  
#2 Posted : Monday, March 14, 2016 2:17:12 PM(UTC)
JAIRODJ

Rank: Advanced Member

Groups: Registered
Joined: 9/1/2015(UTC)
Posts: 126
Man
Location: Ecuador

Thanks: 2 times
Was thanked: 16 time(s) in 12 post(s)
thanks for the info, is what I wanted ... excellent work guide
jhebbel  
#3 Posted : Sunday, March 27, 2016 2:16:46 PM(UTC)
jhebbel

Rank: Advanced Member

Groups: Registered
Joined: 10/28/2015(UTC)
Posts: 183

Thanks: 7 times
Was thanked: 15 time(s) in 14 post(s)
Ive been using this to set my overlay text based on the active input's title, keeps me from needed multiple title inputs and allows me to just use a single button on my midi device to show the title for the current shot.

Code:

Dim doc As New XmlDocument()
doc.Load("http://127.0.0.1:8088/API")
Dim activeID As String = doc.SelectSingleNode("/vmix/active").InnerText
Dim activeName As String = doc.SelectSingleNode("/vmix/inputs/input[@number='"+activeID +"']").InnerText

dim liveTitleParts As String() = activeName.Split(New Char() {"|"c})

dim lowerThird = Input.Find("AnimatedHD.xaml")
lowerThird.Text("Headline") = liveTitleParts(0)
lowerThird.Text("Description") = liveTitleParts(1)

Overlay.Find(1).In("AnimatedHD.xaml")
Users browsing this topic
Guest (2)
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.