theseus-viewer / issues

0 stars 0 forks source link

Support RFC-2326 ("colon") Format for Media Fragments #2

Open markpbaggett opened 1 week ago

markpbaggett commented 1 week ago

At my old shop, we were a relatively early adopter of Presentation 3 for audio and video works. Regrettably, when we implemented structures and ranges, we chose to use RFC-2326 ("colon") format for media fragments rather than seconds. The W3C Media fragment spec is clear that either format is okay, and IIIF doesn't specify to use a specific format. That being said, no community viewers seem to support "colon" format. I'd love to see this supported in Theseus if it's not too much of a lift.

In case it's useful, here is a sample manifest:

https://theseus-viewer.netlify.app/?iiif-content=https://digital.lib.utk.edu/assemble/manifest/rfta/8

stephenwf commented 1 week ago

Thanks, yes it should support those types of fragments.

Going to put this here as a reference: https://github.com/IIIF-Commons/iiif-helpers/blob/main/src/annotation-targets/parse-selector.ts#L18-L19