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
Shivam  
#1 Posted : Tuesday, January 7, 2020 6:26:25 PM(UTC)
Shivam

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,
doggy  
#2 Posted : Tuesday, January 7, 2020 6:45:59 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,101
Belgium
Location: Belgium

Thanks: 116 times
Was thanked: 383 time(s) in 316 post(s)
Shivam  
#3 Posted : Tuesday, January 7, 2020 7:51:51 PM(UTC)
Shivam

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.
stigaard  
#4 Posted : Tuesday, January 7, 2020 7:57:30 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 449
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 300 times
Was thanked: 88 time(s) in 71 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.
doggy  
#5 Posted : Tuesday, January 7, 2020 8:10:36 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,101
Belgium
Location: Belgium

Thanks: 116 times
Was thanked: 383 time(s) in 316 post(s)
Originally Posted by: stigaard Go to Quoted Post
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

Shivam  
#6 Posted : Wednesday, January 8, 2020 5:00:42 PM(UTC)
Shivam

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!
stigaard  
#7 Posted : Wednesday, January 8, 2020 5:48:28 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 449
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 300 times
Was thanked: 88 time(s) in 71 post(s)
Look at this knowledge base article for details to bulk commands:
https://www.vmix.com/kno...-using-scripting-and-api
Shivam  
#8 Posted : Wednesday, January 8, 2020 7:16:23 PM(UTC)
Shivam

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!
doggy  
#9 Posted : Wednesday, January 8, 2020 7:46:04 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,101
Belgium
Location: Belgium

Thanks: 116 times
Was thanked: 383 time(s) in 316 post(s)
One can also have multiple shortcut under the same key also in a vb.net script one can make a http call

a few references to scripting and examples
https://forums.vmix.com/posts/t20986-Scripting-for-Dummies
stigaard  
#10 Posted : Thursday, January 9, 2020 11:11:04 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 449
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 300 times
Was thanked: 88 time(s) in 71 post(s)
Originally Posted by: Shivam Go to Quoted Post
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
Shivam  
#11 Posted : Thursday, January 30, 2020 9:44:56 PM(UTC)
Shivam

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)
Shivam  
#12 Posted : Thursday, January 30, 2020 9:47:52 PM(UTC)
Shivam

Rank: Newbie

Groups: Registered
Joined: 1/7/2020(UTC)
Posts: 6
Location: India

Originally Posted by: stigaard Go to Quoted Post
Originally Posted by: Shivam Go to Quoted Post
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.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)
stigaard  
#13 Posted : Thursday, January 30, 2020 9:50:20 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 449
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 300 times
Was thanked: 88 time(s) in 71 post(s)
Originally Posted by: Shivam Go to Quoted Post
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.
Users browsing this topic
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.