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 b...@sagehill.net 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 b...@sagehill.net mailto:b...@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 b...@sagehill.net mailto:b...@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: video source src=video.ogg type=video/ogg / source src=video.mp4 type=video/mp4 / source src=video.webm type= video/webm /video If tried different ways but haven't been able to do it yet, is it possible? Many thanks, Peter --__--__- To unsubscribe, e-mail: docbook-apps-unsubscribe@__lists.oasis-open.org mailto:docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-__open.org mailto:docbook-apps-h...@lists.oasis-open.org - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] HTML5 Audio + Video multiple sources
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 b...@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 b...@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: video source src=video.ogg type=video/ogg / source src=video.mp4 type=video/mp4 / source src=video.webm type= video/webm /video If tried different ways but haven't been able to do it yet, is it possible? Many thanks, Peter - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
RE: [docbook-apps] HTML5 Audio + Video multiple sources
On 2013-12-08 Bob Stayton wrote: On 12/7/2013 12:27 PM, Peter Fleck wrote: Is it possible in html5 output of audio and video to have multiple sources and fallback? I'm thinking specifically of for example: video source src=video.ogg type=video/ogg / source src=video.mp4 type=video/mp4 / source src=video.webm type= video/webm /video This is not yet supported in the stylesheets. ... 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. It relates to alternating raster/vector images used in my documents. Currently I specify just 'image.png' in the DocBook source. It is used 'as is' in HTML outputs, but for PDF outputs my custom XSLT function looks for 'image.pdf' and if it exists, it is referenced instead in the final FO source. It could be used as a temporary solution also in your case. Regards, Jan - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] HTML5 Audio + Video multiple sources
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: video source src=video.ogg type=video/ogg / source src=video.mp4 type=video/mp4 / source src=video.webm type= video/webm /video If tried different ways but haven't been able to do it yet, is it possible? Many thanks, Peter
Re: [docbook-apps] HTML5 Audio + Video multiple sources
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 b...@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: video source src=video.ogg type=video/ogg / source src=video.mp4 type=video/mp4 / source src=video.webm type= video/webm /video If tried different ways but haven't been able to do it yet, is it possible? Many thanks, Peter - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org