unity
unity copied to clipboard
The events duration do not represent their actual duration
Currently, the duration of the events is calculated by the following formula: published date - update date. This leads to incorrect values.
This duration is returned from the server and is much more accurate. When parsing events, use eventObject['content']['media_duration'] to get the event duration.
Additional context
https://github.com/bluecherrydvr/bluecherry-apps/pull/712#event-15336224931