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: 5,057
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 916 time(s) in 755 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: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 378 times
Was thanked: 100 time(s) in 79 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: 5,057
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 916 time(s) in 755 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: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 378 times
Was thanked: 100 time(s) in 79 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: 5,057
Belgium
Location: Belgium

Thanks: 283 times
Was thanked: 916 time(s) in 755 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: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 378 times
Was thanked: 100 time(s) in 79 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: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 378 times
Was thanked: 100 time(s) in 79 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.
Robert Mark  
#14 Posted : Wednesday, April 20, 2022 1:52:14 AM(UTC)
Robert Mark

Rank: Newbie

Groups: Registered
Joined: 4/20/2022(UTC)
Posts: 2
United States
Location: New York

Was thanked: 1 time(s) in 1 post(s)
Hi. I'm trying to set the title of either a facebook or 'youtube live stream now' stream through the vMix API. I appreciate all the previous replies, but what I, and possibly the original post are inquiring for is a way to manipulate specifically the title.

All of these:

StreamingSetKey
StreamingSetPassword
StreamingSetURL
StreamingSetUsername

are for manipulating 'Custom RTMP' settings, and specifically 'StreamingSetKey' will not manipulate the stream title for the mentioned destinations.

For our clients it would be very useful for the stream title to be updated automatically such that on Sunday the 24th, the title reads 'Sunday the 24th' and so on.

As there are different parameters across the streaming destinations (Dacast, IBM, Facebook, etc) it seems there would need to be new variables within the API, something like:

StreamingFacebookSetTitle
StreamingFacebookSetDescription
StreamingYoutubeLiveStreamNowSetTitle
etc.

It would be many, but would allow us to initiate a stream with a relevant title.

Of note, all of our clients are using direct methods. No one is logging in to facebook or youtube prior to a stream, and we wouldn't ask them to enter stream settings and change things manually each time. It's not that we're snobs :) We're just keeping it simple.

For what it's worth, I currently own nearly seventy vMix HD licenses, so we're not toying with the software. We've implemented it with great success and are now hoping to streamline (no pun intended) operation for cases where there is a simpler event or no tech-savvy-operator present.

Just need a way to give a relevant name to a stream through the API.

Any help would be sincerely appreciated. Thanks!

Roy Sinclair  
#15 Posted : Wednesday, April 27, 2022 7:20:19 AM(UTC)
Roy Sinclair

Rank: Advanced Member

Groups: Registered
Joined: 11/23/2020(UTC)
Posts: 146
United States
Location: Wichita

Thanks: 8 times
Was thanked: 21 time(s) in 17 post(s)
Originally Posted by: Robert Mark Go to Quoted Post
Hi. I'm trying to set the title of either a facebook or 'youtube live stream now' stream through the vMix API. I appreciate all the previous replies, but what I, and possibly the original post are inquiring for is a way to manipulate specifically the title.

All of these:

StreamingSetKey
StreamingSetPassword
StreamingSetURL
StreamingSetUsername

are for manipulating 'Custom RTMP' settings, and specifically 'StreamingSetKey' will not manipulate the stream title for the mentioned destinations.

For our clients it would be very useful for the stream title to be updated automatically such that on Sunday the 24th, the title reads 'Sunday the 24th' and so on.

As there are different parameters across the streaming destinations (Dacast, IBM, Facebook, etc) it seems there would need to be new variables within the API, something like:

StreamingFacebookSetTitle
StreamingFacebookSetDescription
StreamingYoutubeLiveStreamNowSetTitle
etc.

It would be many, but would allow us to initiate a stream with a relevant title.

Of note, all of our clients are using direct methods. No one is logging in to facebook or youtube prior to a stream, and we wouldn't ask them to enter stream settings and change things manually each time. It's not that we're snobs :) We're just keeping it simple.

For what it's worth, I currently own nearly seventy vMix HD licenses, so we're not toying with the software. We've implemented it with great success and are now hoping to streamline (no pun intended) operation for cases where there is a simpler event or no tech-savvy-operator present.

Just need a way to give a relevant name to a stream through the API.

Any help would be sincerely appreciated. Thanks!




That is where you need the YOUTUBE API. Not sure how you'd call the YouTube API from a script running in vMIX but it should be possible to write a program outside of vMIX that calls both APIs.
Robert Mark  
#16 Posted : Wednesday, April 27, 2022 2:40:34 PM(UTC)
Robert Mark

Rank: Newbie

Groups: Registered
Joined: 4/20/2022(UTC)
Posts: 2
United States
Location: New York

Was thanked: 1 time(s) in 1 post(s)
Thank you Roy for your reply! I do appreciate it!

Based on the replies though, and with honestly no offense intended, I'm left to imagine many, if not most vMix users are using methods under the 'stream destination' option that are not 'Facebook' or 'YouTube live stream now'.

The 'stream title' and/or 'description' are variable fields within vMix when using the aforementioned destinations, and are saved within each vMix preset, and therefore must be part of the workings of vMix itself (as opposed to the YouTube or Facebook API) and further then should be able to be automated. You can change these fields in vMix with no interaction whatsoever with Facebook or YouTube. So why can we not set these fields through the vMix API?

None of our clientele is opening a browser to log in to anything, nor would they be expected to; we've implemented vMix (over OBS) for the very purpose that one could initiate a stream outside the extra steps (and CPU usage) and tedious bits of opening a browser and the passwords and the stream settings and starting from the browser then in vMix and so on and so on. There are many institutions that need to stream live that do not posses the technical personnel nor prowess as many of the members here.

I have a request in to my east coast retailer, and if there is a solution I will share with all of possible.

Seriously all I need is a vMix parameter labeled StreamingFacebookTitle or StreamingYoutubeStreamNowTitle in the API and we'd be done.

I'm hoping the investment I've made in many licenses to prove a positive in my request and to be provided a solution soon. My retailer has been very efficient, friendly, and helpful so far and I believe they will come through.

thanks 1 user thanked Robert Mark for this useful post.
SynTom on 9/7/2023(UTC)
SynTom  
#17 Posted : Thursday, September 7, 2023 12:14:57 AM(UTC)
SynTom

Rank: Newbie

Groups: Registered
Joined: 9/22/2020(UTC)
Posts: 2
Germany
Location: Cologne

Thanks: 1 times
Originally Posted by: Robert Mark Go to Quoted Post
Thank you Roy for your reply! I do appreciate it!


I have a request in to my east coast retailer, and if there is a solution I will share with all of possible.

Seriously all I need is a vMix parameter labeled StreamingFacebookTitle or StreamingYoutubeStreamNowTitle in the API and we'd be done.

I'm hoping the investment I've made in many licenses to prove a positive in my request and to be provided a solution soon. My retailer has been very efficient, friendly, and helpful so far and I believe they will come through.



Hi,
this is 100% the same, what i need. Do you have found a solution without programming anything from zero?
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.