Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Media Overlays #1

Open
HadrienGardeur opened this issue Apr 19, 2024 · 0 comments
Open

Support for Media Overlays #1

HadrienGardeur opened this issue Apr 19, 2024 · 0 comments
Assignees
Labels
Epic Higher level view of a feature or group of issues

Comments

@HadrienGardeur
Copy link
Member

HadrienGardeur commented Apr 19, 2024

Support for Media Overlays in Readium Web will be implemented through the on-going work on Guided Navigation.

Media Overlays in EPUB 3.x are a subset of Guided Navigation where:

  • resources in the readingOrder of the publication are exclusively using XHTML
  • Guided Navigation may be available only on a portion of these resources
  • the text is strictly referenced using HTML fragment IDs (chapter1.html#paragraph1)
  • and audio resources are usually referenced with a start/end timestamp in their fragment (track1.mp3#t=0,15)

Support for associated styles is slightly undercooked in RWPM and will require some extra work.

Support will need to be spread out between both toolkits:

  • the go-toolkit needs to be able to parse SMIL files and related metadata from the OPF of an EPUB and expose them in the Readium Web Publication Manifest created on the fly as Guided Navigation Documents
  • the ts-toolkit needs to be able to detect the presence of these Guided Navigation Documents, fetch them and expose them using newly added models
  • the ts-toolkit also needs a new audio navigator (which would be shared with audiobooks in the future), that will be used to read audio fragments and highlight the relevant text at the same time
  • text highlighting needs to be implemented using the styles documented in the EPUB but should fallback to the Highlight API and default styles in case there isn't any authored styles
@HadrienGardeur HadrienGardeur added the Epic Higher level view of a feature or group of issues label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Higher level view of a feature or group of issues
Projects
None yet
Development

No branches or pull requests

2 participants