Browser: Local File to Open URL in OBS Browser

KaptainFabulous

New Member
I have a project I am working on and trying to automate it as much as possible. In OBS, is it possible to have a browser source read a local file, like a .txt file, and open up a URL inside said file? In this instance it would be directed to a twitch pop out video player. This is for a multiview event where multiple people are speedrunning a category at the same time. I have it right now that excel can spit out a .txt file with a url in the file that changes based on the channel name put in a column. If it's not able to be done natively on OBS is there a plug in that can be used to create such a workflow?
 

qhobbes

Active Member
Yes, but it needs to be a htm/html formatted file for links. A file with just:
Code:
https://www.google.com/
will display:
Code:
https://www.google.com/

A htm file with:
HTML:
<a href=https://www.google.com/>https://www.google.com/</a>
will display:
https://www.google.com/

You'll need to use Interact feature to click on the links.
 

KaptainFabulous

New Member
So that works out pretty close to how I want it to work, excel takes two sides of the code

and
>&enableExtensions=true&muted=true&parent=twitch.tv&player=popout&volume=0.01</a>

and combines it with a user name in the middle using some MAGIC in excel
=$G$21&""&C2&""&$I$21
Nothing really that special.
Then with some random code I found online, using VBA I can output those into HTML files and I get a link I can open.
That gets me super close and is something I can probably deal with in the long term but I am a sucker for doing stuff with as little effort as possible.

Is there anything I can do/change/modify to open up the links automatically instead of using interact function?
 

njpontes1

New Member
So that works out pretty close to how I want it to work, excel takes two sides of the code


and


and combines it with a user name in the middle using some MAGIC in excel

Nothing really that special.
Then with some random code I found online, using VBA I can output those into HTML files and I get a link I can open.
That gets me super close and is something I can probably deal with in the long term but I am a sucker for doing stuff with as little effort as possible.

Is there anything I can do/change/modify to open up the links automatically instead of using interact function?
You can call a function at page load
Create a document called index.html with this inside.

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function codeAddress() {
window.location.replace(' RESULT FROM =$G$21&""&C2&""&$I$21 ');
}
window.onload = codeAddress;
</script>
</head>
<body>

</body>
</html>
That away a function will be called at the opening of the page redirecting to the url of choice.

Adapt that to recieve your custom link and I think you are good to go :)
 
Top