Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Add duration field to media items #51

Open
brettdh opened this issue Oct 16, 2018 · 0 comments
Open

Add duration field to media items #51

brettdh opened this issue Oct 16, 2018 · 0 comments

Comments

@brettdh
Copy link

brettdh commented Oct 16, 2018

Motivation

All the media items (podcast episode, meditation, liturgy item) display a duration, but this is not yet part of the API spec. It could be determined from the media downloaded from the media URL, but it would be nice to be able to display this in the app before the entire file is downloaded - particularly for a podcast, where the media files can be quite large. Since we are the CMS, we can determine these when files are added, allowing the app to not worry about this calculation for every media file.

As for format: I suggest an ISO 8601 duration string (easy to handle in the app via momentjs).

Plan of action

Criteria to close

  • Podcast episodes, meditations, and liturgy items return a duration attribute, which is an ISO 8601 duration string.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant