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: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 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: 493 Location: Copenhagen, Denmark Thanks: 389 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 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: 493 Location: Copenhagen, Denmark Thanks: 389 times Was thanked: 100 time(s) in 79 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: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 493 Location: Copenhagen, Denmark Thanks: 389 times Was thanked: 100 time(s) in 79 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: 493 Location: Copenhagen, Denmark Thanks: 389 times Was thanked: 100 time(s) in 79 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.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/20/2022(UTC) Posts: 2 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!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/23/2020(UTC) Posts: 170 Location: Wichita Thanks: 10 times Was thanked: 24 time(s) in 20 post(s)
|
Originally Posted by: Robert Mark 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.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/20/2022(UTC) Posts: 2 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.
|
1 user thanked Robert Mark for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/22/2020(UTC) Posts: 2 Location: Cologne Thanks: 1 times
|
Originally Posted by: Robert Mark 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?
|
|
|
|
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