OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] HTML5 Audio + Video multiple sources

Not quite. The current xhtml5 stylesheet converts a DocBook videodata element to an HTML5 <video> element, but does not handle multiple <source> children. The DocBook TC today approved allowing multiple videodata children of videoobject, so now the stylesheet can be changed to support a single <video> output with multiple <source> children, if you are using the forthcoming DocBook 5.1.
Bob Stayton
Sagehill Enterprises

On 12/10/2013 2:49 PM, Carlos Araya wrote:
Bob, wouldn't this be similar to the markup you implemented for the
ePub3 Stylesheet solution that you worked on? If I remember correctly
that was built on top of the HTML5 stylesheets, correct?

On Sat, Dec 7, 2013 at 4:08 PM, Bob Stayton <bobs@sagehill.net
<mailto:bobs@sagehill.net>> wrote:

    Hi Peter,
    This is not yet supported in the stylesheets. It could be, but I'm
    not sure what the DocBook markup should be.  The mediaobject element
    currently allows multiple videoobject children, but the stylesheet
    currently selects only one object for output from mediaobject, based
    on the role attribute on the object elements.  That lets you specify
    one videoobject for HTML5 output and a different one for epub3
    output, and an imageobject for print output.

    If the videoobject allowed multiple videodata elements, then it
    could output all of them as in your example, mapping the fileref
    attribute to @src and the format attribute to @type, for example.
      But that currently is not allowed in DocBook.  If you were to file
    an RFE on the SourceForge DocBook page, then it would be considered
    by the DocBook Technical Committee.

    Any other suggestions for a markup scheme?

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net <mailto:bobs@sagehill.net>

    On 12/7/2013 12:27 PM, Peter Fleck wrote:

        Hi all,

        Is it possible in html5 output of audio and video to have multiple
        sources and fallback?

        I'm thinking specifically of for example:

            <source src="video.ogg" type="video/ogg" />
            <source src="video.mp4" type="video/mp4" />
            <source src="video.webm" type=" video/webm">

        If tried different ways but haven't been able to do it yet, is
        it possible?

        Many thanks,


    To unsubscribe, e-mail:
    For additional commands, e-mail:

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]