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
tom@24bit.io  
#1 Posted : Friday, August 20, 2021 2:35:41 AM(UTC)
tom@24bit.io

Rank: Newbie

Groups: Registered
Joined: 2/27/2021(UTC)
Posts: 7
Location: London

Hi,

I have a requirement to make vMix change stream keys based on the time of day. The stream keys will be in a Google Sheet.

How do I access the datasource values (strings) within the script?

So far I have:

API.Function("DataSourceSelectRow",Value:="Stream_Key_Test,Keys,0")
API.Function("StreamingSetKey",0,"test123")

And I need to replace "test123" with a variable that contains the actual text stored in the second column of the spreadsheet at row 0.

Many thanks
doggy  
#2 Posted : Friday, August 20, 2021 5:30:52 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: tom@24bit.io Go to Quoted Post
Hi,

I have a requirement to make vMix change stream keys based on the time of day. The stream keys will be in a Google Sheet.

How do I access the datasource values (strings) within the script?

So far I have:

API.Function("DataSourceSelectRow",Value:="Stream_Key_Test,Keys,0")
API.Function("StreamingSetKey",0,"test123")

And I need to replace "test123" with a variable that contains the actual text stored in the second column of the spreadsheet at row 0.

Many thanks



One puts the value in a title and read with script from there or the script access the data source file directly (preferable XML source)

Check out "scripting for dummies" post and how to read text from a title in the helpfiles
Users browsing this topic
Guest
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.