linking to external media

75 views
Skip to first unread message

Carlos

unread,
Mar 29, 2013, 2:42:39 PM3/29/13
to epub...@googlegroups.com
I'm trying to link to two embeded presentations and get the following errors with epubcheck 3.0 final

ERROR: mybook.epub/OEBPS/content/sources-of-inspiration.xhtml(37,99): 'http://embed.ted.com/talks/chip_kidd_designing_books_is_no_laughing_matter_ok_it_is.html': referenced resource is not declared in the OPF manifest.
ERROR: mybook.epub/OEBPS/content/books-now-and-then.xhtml(113,52): 'http://www.youtube.com/embed/xvrbgKDEii0': referenced resource is not declared in the OPF manifest.

what mimetype do I declare them with? would octet-stream be enough?

Is this even possible?
Carlos

Ori Idan

unread,
Mar 29, 2013, 2:48:36 PM3/29/13
to epub...@googlegroups.com
I think it is possible.

You can try declaring it with type text/html.
I am not sure epubcheck checks mimetypes at all.

Tell me if it works.

-- 
Ori Idan

Matt Garrish

unread,
Mar 29, 2013, 3:39:53 PM3/29/13
to epub...@googlegroups.com
You can’t generally embed web resources in EPUBs; only audio and video resources can live outside the container. Referencing a web page that has a video in it is not compliant with the specifications, so trying to mangle media types to get around epubcheck isn’t recommended. You might find some reading systems that will render the content despite the restriction, but if you do hack at the package file don’t do it with the expectation of universal support (I know iBooks will block your content, for example).
 
Looking at the source, you could just reference the mp4 ted video from a video tag using the src: http://video.ted.com/talk/podcast/2012/None/ChipKidd_2012.mp4
 
And youtube videos you can reference in an object tag with their ID in a standard fashion like this: https://www.youtube.com/v/xvrbgKDEii0?version=3
 
Not sure how much luck you’ll have with flash video in epub 3 reading systems, though. A webm version of that video is available if you go to the youtube HTML5 trial, but I haven’t heard of an easy means of getting the URLs to those videos. You’ll have to root around in the javascript and see what you can come up with.
 
Matt
--
You received this message because you are subscribed to the Google Groups "epubcheck" group.
To unsubscribe from this group and stop receiving emails from it, send an email to epubcheck+...@googlegroups.com.
To post to this group, send email to epub...@googlegroups.com.
Visit this group at http://groups.google.com/group/epubcheck?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Carlos Araya

unread,
Mar 29, 2013, 4:25:40 PM3/29/13
to epub...@googlegroups.com
Matt:

I understand that there is no standard for video in ePub but I wasn't sure that there was a  way to play webm on iOS devices. Since I had a copy of the you tube content I added it to the book and only linked to the Ted content. 

Thank you for your help :)

Carlos
Reply all
Reply to author
Forward
0 new messages