Enable/Disable Synchronized Program-Related Function (Sync Audio)
# Enable/Disable Synchronized Program-Related Function (Sync Audio)
Path:
/api/sync_program_mode
Method: PUT
Content-type: application/json; charset=utf-8
API Description: This can be used to enable/disable functions related to the synchronized program.
Request
Name | Type | Example | Description |
---|---|---|---|
enable | int | 1 | Enable/Disable sync audio, GPS synchronization, or LAN synchronization. |
role | String | "slave" | "slave" represents the client of NTP. |
deviation | int | 50 | NTP deviation |
interval | int | 60000 | NTP synchronization interval |
server | String | "ntp1.aliyun.com" | NTP server |
threshold | int | 10 | NTP synchronization threshold |
Example
{
"audio": {
"enable": 1
},
"gps": {
"enable": 0
},
"lan": {
"enable": 0,
"role": "slave"
},
"ntp": {
"enable": 1,
"sync_ntp_server": {
"deviation": 0,
"interval": 120000,
"server": "ntp1.aliyun.com",
"threshold": 10
}
}
}