dauwhe / epub31-bff

Straw-man spec for browser-friendly format for EPUB31
15 stars 3 forks source link

Media overlays and the definition of the links object #18

Open dauwhe opened 8 years ago

dauwhe commented 8 years ago

Should we really create a dedicated element for media-overlay? Can we design something more generic instead that could also handle other use cases? EPUB 3.1 introduces duration, do we need other media specific attributes?

As Element

{
        "href": "xhtml/chapter01.xhtml",
        "type": "application/xhtml+xml",
        "media-overlay": "chapter1_audio.smil"
      }

As nested link element

{
        "href": "xhtml/chapter03.xhtml",
        "type": "application/xhtml+xml",
        "links": {
            "type:": "application/smil+xml",
            "href": "chapter3_audio.smil",
            "rel": "media-overlay"
         }
      }
HadrienGardeur commented 8 years ago

I think we need to explore that as a solution for resource level alternate representations (vs document level with renditions). Is it limited to media overlay and fallbacks? Probably not.

HadrienGardeur commented 8 years ago

I'm also wondering if media overlays couldn't behave more like CSS:

@dauwhe thoughts?