Start a new topic

Cannot control 2 cameras form the Dockable OBS Controllers

I have 2 PTZ optics 30x NDI cameras.


I can control one of them from the Dockable controllers in OBS, but when I change the IP for the second camera in the settings, it changes for both docked controllers.

I am using /obs-windows/4. LARGE CONTROLLER.html for CAM1

and /obs-windows/CAMERA 2/4. LARGE CONTROLLER.html for CAM2


Any help will be appreciated, thanks!



1 person has this question

Yeah, that is something that several users have reported using as a fix. But thank you for letting us know. At this point I think we have already implemented a fix for this specific issue but we are working on a few other updates to the plugin and dockable controllers before releasing the update. 


1 person likes this

@Colin B - I'm another user having the exact same issue.  Glad I found this thread...


@William Brillinger - thanks for the tip!  I'm no Java expert, but I was able to figure out what you did and duplicate it on the first try.  Problem solved!


1 person likes this

Hi Everyone,


Thank you all for your excellent feedback.


The following files will be going live for download from the PTZOptics site today that resolve the issues discussed above with the Open Source Control solution.


Direct Download: https://drive.google.com/file/d/1ClfWj-HAzgkh-6Ki3VuoOcOKAC3Gp4g_/view


Eventual Download Link for Site: https://ptzoptics.com/app/open-source/ 

(Note, files not yet updated on PTZOptics site as of 05.17.2021)


In addition for anyone interested the PTZOptics Control App will be released today as v1.41 that includes a bounty of bug fixes as well.


If you continue to have any issues please do not hesitate to return to the forums.

I have managed to do a workround with the new beta version. I simply edit each of the index.js file in each camera folder and change the default IP addresses and the cameras are working well. There are other default settings but I havnt tried to change those just yet.

From my point of view there is still the same problem as in the old version: The options of the cameras will be saved in the same instance of the local storage (in this case OBS). So last input will be overwrite an older entry.

This is my approach:

1. Open the file in "index.js" in /CAMERA 1/js/ in a text editor.

2. Go to line 23 and change 'configStorage' in 'configStorage1' (for example).

3.  Now go to line 32 and change 'configStorage' in 'configStorage1' ( must be the same name as set  in line 23).
That is what worked for me.
4. Save the JS file.

Do this in a similar way  with all other "CAMERA X" folders you need and  increment the number in 'configStorage' (e. g. CAMERA 2 => 'configStorage2'; CAMERA 3 => 'configStorage3') .



@ Joel and William - 


was in the same boat as you until I fixed it myself - kudos to @William Brillinger for the clues.  


Our church purchased two 30X NDI PTZ cameras for our sanctuary because PTZOptics appeared to have a robust support structure in place for OBS.  Getting it all to work through OBS was critical for us, as I needed a system that a user-level volunteer could understand and be taught to operate. 


This should an easy fix for the pros, and I share your dissatisfaction since this is critical to using more than one camera in OBS.  However...


The fix is relatively easy for an end user if you know or can get mildly comfortable with editing html and java files.  The problem is that each controller page points to/uses same java file, which in turn references the same data object where the settigns are stored.  The fix is to make a copy of the java file for each controller you have (renaming the copies of course), point each controller's html file to the new one, and then in each java file, rename the data object that holds the settings to a unique name for that controller.


I'll have the church's PC home over the weekend and can post more specifics here if you need them.  If I have time, I may just also fix the entire distribution and share it; I only did it for controllers 1 and 2 since that's all our setup needed.

In addition to the IP addresses, the saving of all other settings are also a problem. The reason is that the settings of each camera are saved in the same variable  (localStorage => "configStorage").

This could be a way to solve the problem:
First define a JS variable in the header of each HTML-Remote-Control-File. For example in the HTML of cam 1 define "var cam_no = 1;", for cam 2 define "var cam_no = 2;" etc.

Next step open the index.js in a text editor. Go to line 23 and change it to

 

var result = localStorage.getItem('configStorage' + cam_no.toString());

Do nearly the same in line 32:
localStorage.setItem('configStorage' + cam_no.toString(), JSON.stringify(config));


Tha's it.


Hi William,


That is a known bug that exists with the Dockable controllers at the moment. We are working on a fix and should be releasing an updated version soon.

I will respond here once that update has been released and is available for download on the OBS Plugin page.

ok.


We were able to solve this by making a duplicate of the javascript file with a new container name for the data object and  pointing the 2nd controller.html at the new js file.


I can post the specific details if you want them.

Once you set up the dockable controllers in OBS. Go to properties and set the correct IP address. Then simply close OBS and reopen it. It should start working.

@Paul Richards


That's fine for 1 controller, but if you have 2 controllers, changing the properties on 1 controller changes both.

I am also struggling with the same issue.  I've installed different docks for each of our cameras (using the the correct folders) but still getting the ip address changing every time I load OBS.  Considering we are a house of worship and have a volunteer A/V crew, I need this to work.  I don't have time to reassign ip addesses for every service!  I chose PTZoptics cameras because they advertised their dockable controls and this was the best solution for us, however, if the docks don't work, it reflects poorly on their product...


Where are we with a solution to this issue?

Is there any timeline of the new patch to fix the duplicating IP bug? I'd love to be able to simplify things for my operators. 

Sorry, nothing at the moment, but this on our radar and should be fixed in the future. 

Login to post a comment