Using the PTZOptics Plugin for multiple cameras, when I would refresh both browser docks OR close and reopen OBS, the IP address would always be the most recent one I had entered. It would essentially flip-flop every session, because I would open it and fix CAM1. Next session, I would have to fix CAM2, repeat). I used HTML files in separate folders for each camera. However, these HTML files were referencing the same Javascript files. When the IP address would save, it would over-ride it for any future sessions.
I was able to create a workaround>>>>
1) Duplicate the index.js and rename it index2.js [index2 can remain in the same folder]
2) In your 2nd camera's HTML file:
-edit the file reference at the end of document for the change above.
- find/replace "cam_ip" for "cam_ip2"
3) In index2.js Find/Replace:
- "camera_ip" for "camera_ip2"
- "config.ip" for "config.ip2
Repeat for all subsequent cameras.
This allows IP addresses to be saved between sessions of OBS (great for volunteers in church or complex multiple camera setups). It could probably be simplified by creating the variables in the Index.js file for the multiple IPs instead of a separate JS file for each HTML file. I just found this easier, as my JS editing skills are not very good.
Hope this helps someone else, it was starting to bug me. I sent this on to PTZOptics, to see if they wanted to address the issue in any future releases.
I was able to create a workaround>>>>
1) Duplicate the index.js and rename it index2.js [index2 can remain in the same folder]
2) In your 2nd camera's HTML file:
-edit the file reference at the end of document for the change above.
- find/replace "cam_ip" for "cam_ip2"
3) In index2.js Find/Replace:
- "camera_ip" for "camera_ip2"
- "config.ip" for "config.ip2
Repeat for all subsequent cameras.
This allows IP addresses to be saved between sessions of OBS (great for volunteers in church or complex multiple camera setups). It could probably be simplified by creating the variables in the Index.js file for the multiple IPs instead of a separate JS file for each HTML file. I just found this easier, as my JS editing skills are not very good.
Hope this helps someone else, it was starting to bug me. I sent this on to PTZOptics, to see if they wanted to address the issue in any future releases.