Configuring File OverviewFile Name: config.jsonFile Location: ${workspace}/config.jsonFile Type: jsonNote: Remove comments after "//". Minimum node as follows{"device_id":"dev1", //change to the remote device ID created in the console"device_name":"vin99","max_streams":8,"cloud_mode":"public", "certificate":"./device.pem", "projectid" : "xxxxx", //change to the project ID created in the console "password": "xxxxx" //change to the password created in the console}
Node Name | Type | Meaning | Default Value | Remarks | Parameter Range |
device_id | String | Device ID, a unique code used for registering to the server | - | Required | - |
device_name | String | Device name, used to identify device information | - | Required | - |
max_streams | Number | maximum number of streams connected to remote devices | - | Required | None, recommended demo support >=8 |
projectid | String | Project ID | - | Required for public cloud | - |
cloud_mode | String | Cloud mode | - | Required | public: Public cloud private: Private cloud |
password | String | device key | - | Required for public cloud | - |
certificate | String | server public key certificate | - | Required for public cloud, device.pem file path | - |
force_login | Number | Whether to force login | 0 | Whether to remove previous device login for the same ID | 0: When the same ID is already logged in, the current device login is removed 1: When the same ID is already logged in, the current device will force login, removing the previous device |
server_ip | String | TRRO server-side IP | - | Not required for public cloud Required for privatization | - |
server_port | Number | TRRO server port number | - | Not required for public cloud Required for privatization | - |
log_enable | Boolean | Log switch | 1 | Optional | 0: disabled 1: info log 2: info + debug log |
sdk_mode | String | Stream transmission mode | "server2" | Optional | Public cloud requires server2 |
rtc_server_ip | String | Media server IP | - | No need to specify for public cloud, required for privatization | - |
rtc_server_port | Number | Media server port number | - | No need to specify for public cloud, required for privatization | - |
audio_enable | Number | Audio capture enabled | 0 | Optional | 0: disabled 1: Enabled |
audio_receive | Number | Audio reception enabled | 1 | Optional | 0: disabled 1: Enabled |
auto_permission | Number | Automatic request for permissions | 1 | Optional | 0: Application request for permissions 1: Automatic request for permissions |
play_mode | Number | Viewing mode | 0 | Optional | 0: Ultra low-latency viewing 1: Smooth viewing |
decode_hw_acc | Number | Whether hardware decoding is prioritized | 0 | Optional | 0: Software decoding 1: Hardware decoding prioritized |
file_path | String | Save file path | - | Optional, enable recording during configuration, ensure the configuration path exists | - |
min_port | Number | local port range minimum value for video transmission | 50000 | Optional | - |
max_port | Number | local port range maximum value for video transmission | 50100 | Optional | - |