OBS to load local HTML from the source browser

omekomens

New Member
HELLO everyone. my name is omekomens.call me omeko.

let me see.
you know
We would like to program to reload the browser source using a WebSocket server at OBS. Of course, we are using OBS to distribute the web site, and we are using OBS to load local HTML from the source browser. I am currently updating this HTML manually, but I would like to do it automatically by programming, and I think I can do it with WebSocket, but I don't know how to describe it using "PressInputPropertiesButton". Please tell me how to do it.



【NG Code】
obs.protocol('PressInputPropertiesButton',{inputName: 'Latest_follower'}).then((data) => {
console.log('PressInputPropertiesButton:', data);
});

[reference]

PressInputPropertiesButton​

Presses a button in the properties of an input.

Some known propertyName values are:

  • refreshnocache - Browser source reload button
Note: Use this in cases where there is a button in the properties of an input that cannot be accessed in any other way. For example, browser sources, where there is a refresh button.

  • Complexity Rating: 4/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0
Request Fields:

Name
Type​
Description
Value Restrictions​
?Default Behavior
?inputName
String​
Name of the input
None​
Unknown
?inputUuid
String​
UUID of the input
None​
Unknown
propertyName
String​
Name of the button property to press
None​
N/A
 
Top