![]() ![]()
Mqtt string const OBSWebSocket = require('obs-websocket-js') const mqtt = require('mqtt') const obs = new OBSWebSocket() obs.connect() There are several pieces enclosed in the program, but please write it according to your own environment. ![]() The specific contents of the program are as follows. #Scene switcher obs studio install#To do this, install the two packages of OBS-websocket-js and mqtt with the NPM command. The program described here uses two packages (OBS-websocket-js #Scene switcher obs studio Pc#In this configuration, the mqtt message was tested at the beginning to test the mqtt processing at the time of implementing the processing on the receiver side PC Mqtt FX (this app is on the left of the first configuration diagram to replace the role of the two devices). This is not the mechanism used, it is the story of the app used in the course of development, but it is useful for the convenience. Here, mqtt Mqtt The detailed explanation of shiftr is omitted, but the link of the article which seems to be reference below is described.Įasy to use mqtt broker and library from obniz The mqtt is used for communication between PC and other devices, as shown in the figure of "the first." Notes In the program Mqtt With the JavaScript implementation of the smash part of the configuration diagram Mqtt.Īs for mqtt brokers that mediate the communication of mqtt, it was good to use it on the PC where the OBS was moving because it was enough to use the communication in the local network, and was able to move on the PC where the OBS was moving It was configured to use shiftr because there was one using "shiftr" which is one of the services that offer mqtt broker. So, we have tried to combine mqtt recently used in cooperation between devices including microcomputer modules. However, I think that I would like to cooperate with the microcomputer module other than sumaho, and that the PC side implementation could not be made separately for those terminals, but could be made common. One way to move on PC Notes There is a method of adding web files for web server processing, web pages, and so on to work with programs of programs (OBS websocket). I decided to start the operation of the OBS device from another device outside the PC. In fact, write a part of this sample in the same way as the plugin settings for my OBS websocket You can confirm that you can do it.Īfter that, we tried to combine the keypress and push the specific key of the PC to switch to the scene corresponding to the key pressed by the scene of OBS.īy using the OBS websocket plugin and OBS websocket - (or for languages other than JavaScript), it is now possible to control OBS without stepping into the details of the OBS websocket protocol. #Scene switcher obs studio password#You can also change the settings associated with plugins such as port numbers and password authentication, and you can change the OBS from the start menu to the "tools web server settings" Because the port number of the configuration was used, it changed to the default port number not to be congested, and it was different from the story, but the authentication setting was enabled). The procedure for using this plugin is simple, and if you install the plugin, the server for websocket will start up when you start obs. If you can communicate with websocket, you can control the OBS from another program app in the PC running, and you can control it from another device outside the PC. obs-websocket/protocol.md at 4.x-current.By adding this plugin to the OBS, you will be able to control the OBS from the external programs and apps.Īs with the name of the plugin, it uses websocket to control obs.īy communicating with websocket along t he protocol written on the page of the following suppliers, it is possible to do not only switching the scene introduced at the beginning but also operation of various OBS from the external program and the app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |