vMix Forums
»
General
»
General Discussion
»
vMix API QuickPlay selected video from video list
Rank: Newbie
Groups: Registered
Joined: 6/2/2021(UTC) Posts: 3 Location: Vilnius
|
Hi everyone, I'm trying to play specific video (index) from video list using vmix api using "SelectedIndex=#" but that does not seem to work. The user guide tells that Quote: Specify an index to pass to the input The following Inputs support the SelectedIndex parameter:
VideoList: Specify the video to play starting from 1
but if I call Quote:/API/?Function=PreviewOverlayInput2&Input=89449750-5866-4f4b-a4fb-f0eccf2907d6&SelectedIndex=2 , vMix plays not the 2nd video from list, but the one that is currently selected. Any help would be appreciated.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Do NOT mix up functions please Is always a good idea to check a function using/creating a shortcut and needed items before attempting to convert it to an function call and claiming it does not work API.Function("SelectIndex",Input:=25,Value:=2 ) for example in a script or http://127.0.0.1:8088/api/?Function=SelectIndex&Input=25&Value=2 for use in browser
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/2/2021(UTC) Posts: 3 Location: Vilnius
|
"SelectIndex" is a function, I found it in shortcuts, this is clear to me. BUT "SelectedIndex" looks like parameter, which can be used with videolist, virtual set and title. At least it is specified so in online user guide https://www.vmix.com/hel...ex.htm?DeveloperAPI.htmlQuote:SelectedIndex
Specify an index to pass to the input The following Inputs support the SelectedIndex parameter:
VideoList: Specify the video to play starting from 1 Virtual Set: Specify the camera zoom to transition to Title: Specify the text item to configure starting from 0
However, maybe anyone have found a solution, how to quickplay a specific item from video list without selecting it before, by using another api call?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: sfxter However, maybe anyone have found a solution, how to quickplay a specific item from video list without selecting it before, by using another api call?
I gave you the solution SelectedIndex <> SelectIndex ! SelectedName or SelectedIndex are indeed a parameter like for the SetText function to specifie the textfield by name or index
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/2/2021(UTC) Posts: 3 Location: Vilnius
|
Thank you for your reply. Sorry, if I am getting it wrong, but looks like your suggested answer Quote:API.Function("SelectIndex",Input:=25,Value:=2 ) for example in a script or http://127.0.0.1:8088/api/?Function=SelectIndex&Input=25&Value=2 for use in browser only selects video from list, but does not start playing it. This is not what I am looking for.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: sfxter Thank you for your reply. Sorry, if I am getting it wrong, but looks like your suggested answer Quote:API.Function("SelectIndex",Input:=25,Value:=2 ) for example in a script or http://127.0.0.1:8088/api/?Function=SelectIndex&Input=25&Value=2 for use in browser only selects video from list, but does not start playing it. This is not what I am looking for. And follow it with a "PLAY" function (if the list is not in general playing already)
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
vMix API QuickPlay selected video from video list
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