streaming (bool): This param limits the list to items that have been scheduled to stream live.
Example query:
https://api.countrysidebible.org/media?streaming=true
This filters out all items in the past; it only includes items that are currently live, or are in the future. Media items that are scheduled to stream have a nested object "streaming" which has properties that define:
{
"published": false,
"id": 7672,
"mediacode": "20190428a_c-ser_t-tp",
...
...
"streaming": {
"startTs": 1556457600,
"start": "2019-04-28 08:20:00",
"endTs": 1556472000,
"end": "2019-04-28 12:20:00",
"liveNow": false
}
}
When an event is live at the time you make the API call, the streaming object will have a sub-object: "files" containing urls to the live audio (.mp3) and live video (.m3u8).
{
"published": false,
"id": 7672,
"mediacode": "20190428a_c-ser_t-tp",
...
...
"streaming": {
"startTs": 1556457600,
"start": "2019-04-28 08:20:00",
"endTs": 1556472000,
"end": "2019-04-28 12:20:00"
"liveNow": true,
"files": {
"video": "https://media01.boxcast.com/playlists/fgvev40wezq08sciggtw.m3u8?Expires=2147483647&Signature=DOvDJsk7udQW3QfRYOkXLmT15GMphQvaUtXtGwqQgOfc72~eMIxSJMQ3V6a0YO2VlpdErEQDDDCYFBeEABD2wrahp4vAzm-f6wWHxTkRMby7S5yEpgzwaAiWPNJ1re-YiIrl1qPZeuLIZvwzGXyZOBZPOHYlE9MvG~KeqB1UhYyqJyRZoyP86OQfdvXtJtK-96HI1ElO73TutHXeo5kGdhRClep-GD9PfY4JO66eHVfa1HVpRTj4itWJCjpIXmiRFmqMFwhsprtxXu0a4kI5ykI7pU73nz1e9gBXRpMeFXjRv5O80mLhQa8FfK9YJ4s8KDm5hjt4N67MpXy-xNgiTg__&Key-Pair-Id=APKAJ7GUCBQUK6NTWZCA",
"audio": "https://edge.mixlr.com/channel/pbnpe"
}
}
}