The settings.json could be located in two paths:
C:\Users\<Username>\.4yousee
C:\.4yousee\
Once you locate the settings.json file inside some of the two previously mentioned paths, open it with a text editor and it should look like the following image:
In this file you can make changes and then when clicking on the 4yousee player icon in the notification bar and Reload Settings, the changes will be made. One of the advantages of altering this file is:
- Configure Multiple Players
- Configure Player Position and Size
- List Processes you Want to Kill
- Configure the cursor position
If you want to know the definition of the other parameters that appear in this file, you can consult Defining the robot parameters
1. Configuring Multiple Players
To configure two or more players through the settings file, you must open your two players and place them in the positions you want, this way it is easier to obtain the configuration data of the players in relation to the screens where they will be displayed. With the players running, open the player menu by clicking once in the middle of it (the player) and when the menu appears, click on the red button, as shown in the following image:
Anote los dados que se muestran allĂ; Windows Size y Windows Position:
Then open the Settings file and place the commands as in the image below and fill in the fields according to the data you took from the player:
Since it is a file of type ".Json" it is necessary to leave all the detailed fields including the punctuation marks as shown in the previous image. However if you are configuring 2 players, we recommend looking at the following structure:
{
"autoUpdatePlayer": true,
"autoUpdateRobot": true,
"fullScreen": false,
"intervalCheckPlayerState": 20,
"mouse": {
"move": false
},
"players": [
{
"port": 48567,
"settings": {
"position": {
"left": 0,
"top": 0
},
"size": {
"height": 1366,
"width": 768
}
}
},
{
"port": 48568,
"settings": {
"position": {
"left": 1366,
"top": 0
},
"size": {
"height": 900,
"width": 1440
}
}
}
],
"updateInvertal": 12
}
In the previous image, player 2 in the Left field will have the Width value of player 1, as long as they are two players on the same computer. It is also necessary to change the Port field so that the Robot identifies the players independently. Changing the last digit will be enough, however this configuration must be done in the player as well, see images 1 and 2:
To finish, save the edited file and close the Players. To finish, remember to go to the 4YouSee Player icon in the notification bar and click on the Reload Settings option. After that the players must load in the positions and dimensions established in the json.
If something went wrong, please validate your json
2. Configure Player Position and Size
To configure your player in a specific position on your computer, it is necessary to edit the fields left (position in X), top (position in Y), height (height) and width (width). The settings.json would look like the following::
{
"autoUpdatePlayer": true,
"autoUpdateRobot": true,
"fullScreen": false,
"intervalCheckPlayerState": 20,
"mouse": {
"move": false
},
"players": [
{
"port": 48567,
"settings": {
"position": {
"left": 0,
"top": 0
},
"size": {
"height": 854,
"width": 480
}
}
}
],
"updateInvertal": 12
}
To finish, save the edited file and close the Player. Remember to go to the 4YouSee Player icon in the notification bar and click on the Reload Settings option. After the player must load in the positions and dimensions established in the json. If something went wrong, please validate your json
3. Validation of Json File
If it has not worked it is possible that your Json file has a drafting problem, for that we recommend that you validate it. For this there are already web pages that help validate, such as "https://jsonlint.com/". Paste all the content of the file in the corresponding field and click on "Validate Json":
If no error appears, it means your settings are correct. but if they appear, you must correct the file.