Создание ArchiveContext с постоянной записью:

{
    "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "added": [
            {
                "uid": "hosts/Server1/MultimediaStorage.Yellow",
                "units": [
                    {
                        "type": "ArchiveContext",
                        "properties": [
                            {
                                "id": "camera_ref",
                                "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
                            },
                            {
                                "id": "constant_recording",
                                "value_bool": true
                            },
                            {
                                "id": "prerecord_sec",
                                "value_int32": 0
                            },
                            {
                                "id": "specific_fps",
                                "value_double": 0
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

В ответе будет uid добавленного ArchiveContext:

{
    "failed": [],
    "added": [
        "hosts/Server1/MultimediaStorage.Yellow/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2"
    ]
}

Изменение потока, привязанного к архиву

{
    "method":"axxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data":{
        "changed":[{
              "uid": "hosts/Server1/MultimediaStorage.Aqua/ArchiveContext.b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2",
              "type": "ArchiveContext",
              "properties": [
                {
                  "id": "streaming_id",
                  "value_string": "hosts/Server1/DeviceIpint.10/SourceEndpoint.video:0:0"
                }]
            }
        ]
    }
}
  • No labels