Video in ePub 3 with Readium

3 posts / 0 new
Last post

Hi everyone !

I'm creating an ePub 3 with Indesign and I need some new looks on it because my brain overheat right now.
I've made some tests to include video in my ePub and I've test it on iBooks and Readium.

Everything is fine with iBooks, but I've one issue with Readium.
I don't know why my video doesn't work.

I've writen :

<video id="monet.mp4" class="frame-1" poster="image/219.jpg" controls="controls">
<source src="video/monet.mp4" type="video/mp4" />

And in the opf file :
<item href="Misc/monet.mp4" id="monet.mp4" media-type="video/mp4" />

I've check with some others ePubs with videos, their videos work and the code is similar.
I think there is something that i didn't see.

I take any ideas, thank you !!

The path in the OPF <item> href attribute doesn't match the corresponding path in the <source> element's src attribute. That is likely to mean your book doesn't validate; iBooks probably won't care, but Readium might.

Beyond that, it may be a codec issue. That "video/mp4" type can hide a whole load of complications. The following might help:

Hi !

Thank you for your answer !

Concerning the error between opf file and the other one, it's just an error of my copy/past for this post.
The path is video/monet.mp4.

And in my opf file :
<item id="monet.mp4" href="video/monet.mp4" media-type="video/mp4" />

I don't know if this is the video that is problematic because this same video works in the original file on iBook and Readium. But when I use it for my test, it doesn't work..

I'll look on the link you gave me.

Secondary menu