Rank: Newbie
Groups: Registered
Joined: 1/7/2020(UTC) Posts: 6 Location: India
|
I am using VMIX API. I want to start stream from Web API. I have an API to do this but Right Now i need to programatically to change stream name before start stream. Is there any function to do this via API? So I can call that function to change stream name dynamically. Please assist me . Thanks,
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 2,651  Location: Belgium Thanks: 152 times Was thanked: 486 time(s) in 396 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/7/2020(UTC) Posts: 6 Location: India
|
Yes I found similar from reference Function List: Function name is : StreamingSetKey I am calling this API function: http://104.174.104.192:8088/api?function=StreamingSetKey&Value=ABC But when I call this function it says "No Suitable function found". Please help me out here. This is very very important for me. Please help me.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 470   Location: Copenhagen, Denmark Thanks: 325 times Was thanked: 94 time(s) in 76 post(s)
|
What version of vMix do you use? I think the function is pretty new (version 23), and you must therefore update to the newest version.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 2,651  Location: Belgium Thanks: 152 times Was thanked: 486 time(s) in 396 post(s)
|
Originally Posted by: stigaard  What version of vMix do you use? I think the function is pretty new (version 23), and you must therefore update to the newest version. Is correct Along with StreamingSetKey StreamingSetPassword StreamingSetURL StreamingSetUsername
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/7/2020(UTC) Posts: 6 Location: India
|
Hi, Can you please help me how can I use multiple functions with same URL end point like: http://104.174.104.192:8088/api?function=StreamingSetKey&Value=SHIVAM&function=StartStreaming&Value=0 The above is not correct. Can you please correct it? What I want is: I want to change stream name programmatically and start stream at same. Please help me out here. Thanks a lot!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 470   Location: Copenhagen, Denmark Thanks: 325 times Was thanked: 94 time(s) in 76 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/7/2020(UTC) Posts: 6 Location: India
|
Thanks for your message,
The above reference link has example in VB.NET. Could you please send me how can I do this using HTTP/CURL/NODEJS. Please help me out here.
Thank you so much!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 2,651  Location: Belgium Thanks: 152 times Was thanked: 486 time(s) in 396 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 470   Location: Copenhagen, Denmark Thanks: 325 times Was thanked: 94 time(s) in 76 post(s)
|
Originally Posted by: Shivam  Thanks for your message,
The above reference link has example in VB.NET. Could you please send me how can I do this using HTTP/CURL/NODEJS. Please help me out here.
Thank you so much! I am working on a NodeJS package to interact with vMix. You can read more about it here https://www.npmjs.com/package/vmix-js-utils
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/7/2020(UTC) Posts: 6 Location: India
|
Hi, Thanks for your message. I am trying toi use your NPM module for this. But it doesn't work for me. here is sample code to run two function at same using node: const vMixUtils = require('vmix-js-utils') const connection2 = new vMixUtils.Connection('localhost', 8088) connection2.on('connect', () => { console.log('Connected') }) connection2.on('error', (error) => { console.error('Error', error) }) // Perform commands // You can use any vMix Function here // List of all functions here: // https://www.vmix.com/hel...utFunctionReference.html let onSuccess = function (response) { console.log('Performed command', response) } let onError = function (error) { console.log('Could not perform command', error) } var options = [ // 'TALLY', // Get tally information { Function: 'StreamingSetKey', Value: 'webrtc/vmix' }, { Function: 'StartStreaming', Value: 0 } ] // Perform a simple cut connection2.send(options)
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/7/2020(UTC) Posts: 6 Location: India
|
Originally Posted by: stigaard  Originally Posted by: Shivam  Thanks for your message,
The above reference link has example in VB.NET. Could you please send me how can I do this using HTTP/CURL/NODEJS. Please help me out here.
Thank you so much! I am working on a NodeJS package to interact with vMix. You can read more about it here https://www.npmjs.com/package/vmix-js-utils Hi, Thanks for your message. I am trying toi use your NPM module for this. But it doesn't work for me. here is sample code to run two function at same using node: const vMixUtils = require('vmix-js-utils') const connection2 = new vMixUtils.Connection('localhost', 8088) connection2.on('connect', () => { console.log('Connected') }) connection2.on('error', (error) => { console.error('Error', error) }) // Perform commands // You can use any vMix Function here // List of all functions here: // https://www.vmix.com/hel...utFunctionReference.htmllet onSuccess = function (response) { console.log('Performed command', response) } let onError = function (error) { console.log('Could not perform command', error) } var options = [ // 'TALLY', // Get tally information { Function: 'StreamingSetKey', Value: 'webrtc/vmix' }, { Function: 'StartStreaming', Value: 0 } ] // Perform a simple cut connection2.send(options)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 470   Location: Copenhagen, Denmark Thanks: 325 times Was thanked: 94 time(s) in 76 post(s)
|
Originally Posted by: Shivam  Hi, Thanks for your message.
I am trying toi use your NPM module for this. But it doesn't work for me. Hi Shivam. Please note that I have updated the package just yesterday, so the code to establish a TCP socket to vMix is moved to node-vmix.
|
|
|
|
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