Validating ePub 3 files having Videos

3 posts / 0 new
Last post

Hi,

I am working on creating an ePub 3 file with Video. The video format used is .m4v. The ePub works fine when directly uploaded to iPad but when i run it through the validator it gives me following error for videos

element "video" not allowed anywhere; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")

So can some one help me in rectifying this error?

Hi Soniyaman,

the most likely reason is that your EPUB document is declared as version 2, in which video is not allowed. If you "upgrade" the document to EPUB 3, video will be allowed. If you don't have a tool that can do this for you, the primary things that need to be done is to change the "version" attribute on the package element root to "3.0". You will also need to add the "dcterms:modified" meta element as described here: http://idpf.org/epub/30/spec/epub30-publications.html#last-modified-date

Let us now if this doesnt help!

Thanks Markus. It helped and i was able to add videos.

Secondary menu