2019-09-07, 23:25
We have an add-on for a VOD service of a public broadcaster (VRT NU) and some of the VOD content comes with metadata including chapter information (basically a name + offset).
Now currently it does not seem possible (in Python at least) to add chapter information to an existing video stream (i.e. by adding the information to the ListItem).
However for our users it would be very useful to skip the current chapter and move to the next. This is supported by most of the News programs (usually covering multiple topics).
Some of these programs (e.g. program about local politics) take up to 2 hours with up to 12 items (interviews, debates, music).
The metadata looks like this:
Now currently it does not seem possible (in Python at least) to add chapter information to an existing video stream (i.e. by adding the information to the ListItem).
However for our users it would be very useful to skip the current chapter and move to the next. This is supported by most of the News programs (usually covering multiple topics).
Some of these programs (e.g. program about local politics) take up to 2 hours with up to 12 items (interviews, debates, music).
The metadata looks like this:
json:
{
...
"chapters": [
{
"startTime": 56,
"title": "Lerarentekort",
"id": "8a5ad532-cf67-4e62-b5e7-43af03d4b93d",
"externalImageUrl": null,
"duration": "00:10:57",
"thumbnail": ".thumb.319.319.png",
"formattedStartTime": "00:00:56",
"startTimeInMillis": 56353
}, {
"startTime": 713,
"title": "Sociaal Incapabele Michiel",
"id": "76303240-6ff4-4ef3-9f2b-c1e7ce1e8438",
"externalImageUrl": null,
"duration": "00:05:04",
"thumbnail": ".thumb.319.319.png",
"formattedStartTime": "00:11:53",
"startTimeInMillis": 713485
}, {
"startTime": 1017,
"title": "De aangever van Alex Agnew",
"id": "3ab0cb0d-facb-463a-b75b-bbc761b3ad74",
"externalImageUrl": null,
"duration": "00:01:27",
"thumbnail": ".thumb.319.319.png",
"formattedStartTime": "00:16:57",
"startTimeInMillis": 1017987
},
...
],
...
"programName": "de-ideale-wereld",
...
"shortDescription": "Met Alex Agnew",
...
"title": "Alex Agnew",
}