A list of Wachers as it is returned by the API.
[- {
- "id": "ad128d51-9a1c-407d-9edb-d590eb9c3d74",
- "description": "Test watcher",
- "source": {
- "ingest_ip": "uniqueservername.example.com",
- "ingest_port": 5000,
- "container": "raw-video",
- "codec": "h264",
- "transport": {
- "protocol": "rtp"
}
}, - "status": "ready",
- "transitions": [
- {
- "from": "content",
- "to": "slate",
- "actions": [
- {
- "description": "Trigger AdBreak using API",
- "type": "http_call",
- "method": "POST",
- "retries": 3,
- "timeout": 10,
- "authorization": {
- "basic": {
- "username": "myusername",
- "password": "somepassword"
}
}, - "headers": {
- "Content-Type": "application/json"
}, - "body": "{\"duration\":300}"
}
]
}, - {
- "from": "slate",
- "to": "content",
- "actions": [
- {
- "description": "Use dump out of AdBreak API call",
- "type": "http_call",
- "method": "DELETE",
- "timeout": 10,
- "authorization": {
- "basic": {
- "username": "myusername",
- "password": "somepassword"
}
}
}
]
}
]
}
]
description | string A human readable description of the watcher. |
slate_url required | string <uri> The slate image url, needs to be publicly accessible. |
required | object Sepecify the video source configurations. |
required | Array of objects |
A valid JSON payload that can be used to create a Watcher.
{- "description": "Test watcher",
- "source": {
- "ingest_port": 5000,
- "container": "raw-video",
- "codec": "h264",
- "transport": {
- "protocol": "rtp"
}
}, - "transitions": [
- {
- "from": "content",
- "to": "slate",
- "actions": [
- {
- "description": "Trigger AdBreak using API",
- "type": "http_call",
- "method": "POST",
- "retries": 3,
- "timeout": 10,
- "authorization": {
- "basic": {
- "username": "myusername",
- "password": "somepassword"
}
}, - "headers": {
- "Content-Type": "application/json"
}, - "body": "{\"duration\":300}"
}
]
}, - {
- "from": "slate",
- "to": "content",
- "actions": [
- {
- "description": "Use dump out of AdBreak API call",
- "type": "http_call",
- "method": "DELETE",
- "timeout": 10,
- "authorization": {
- "basic": {
- "username": "myusername",
- "password": "somepassword"
}
}
}
]
}
]
}
{- "id": "string",
- "status": "ready",
- "status_description": "string",
- "source": {
- "ingest_ip": "dc401bafb-15a.elb.us-east-1.amazonaws.com",
- "codec": "h264",
- "container": "mpeg-ts",
- "ingest_port": 0,
- "transport": {
- "protocol": "rtp"
}
}, - "description": "string",
- "transitions": [
- {
- "actions": [
- {
- "description": "string",
- "type": "http_call",
- "authorization": {
- "basic": {
- "username": "string",
- "password": "string"
}
}, - "body": "string",
- "headers": { },
- "method": "POST",
- "retires": 0,
- "timeout": 0
}
], - "from": "content",
- "to": "content"
}
]
}
Watcher that is returned by the API.
{- "id": "ad128d51-9a1c-407d-9edb-d590eb9c3d74",
- "description": "Test watcher",
- "source": {
- "ingest_ip": "uniqueservername.example.com",
- "ingest_port": 5000,
- "container": "raw-video",
- "codec": "h264",
- "transport": {
- "protocol": "rtp"
}
}, - "status": "ready",
- "transitions": [
- {
- "from": "content",
- "to": "slate",
- "actions": [
- {
- "description": "Trigger AdBreak using API",
- "type": "http_call",
- "method": "POST",
- "retries": 3,
- "timeout": 10,
- "authorization": {
- "basic": {
- "username": "myusername",
- "password": "somepassword"
}
}, - "headers": {
- "Content-Type": "application/json"
}, - "body": "{\"duration\":300}"
}
]
}, - {
- "from": "slate",
- "to": "content",
- "actions": [
- {
- "description": "Use dump out of AdBreak API call",
- "type": "http_call",
- "method": "DELETE",
- "timeout": 10,
- "authorization": {
- "basic": {
- "username": "myusername",
- "password": "somepassword"
}
}
}
]
}
]
}