4

i want to create an epub reader with feature like play video and audio from my iphone app. One more thing i would like to say that it will not a web based applicaton. i mean to say that i dont want to use uiwebview. please any body help me thanx in adv.

korat prashant
  • 1,523
  • 10
  • 24

2 Answers2

3

EPUB3 supports tag, http://idpf.org/epub/30/spec/epub30-overview.html#sec-multimedia

So you can embed video like this:

<video id="my_video_1" width="720" height="365" preload="auto" controls="true">
<source src="../Misc/my_video_1.m4v" />
</video>

And, H.264 or VP8 video codecs are recoomended. http://idpf.org/epub/30/spec/epub30-publications.html#note-video-codecs

turutosiya
  • 1,051
  • 10
  • 17
1

The epub format is wrapped as a zip file (you can just unzip it). There was a lot of discussion about it in this thread:

So you can just add the audio/video in the zip and then runnit locally using MPMoviePlayer. If you want to be able to actually show the book you must re-implement a web engine, as epub books uses HTML to diagram. So, as far as I know, the UIWebView is the easiest way to go.

Community
  • 1
  • 1
JP Illanes
  • 3,665
  • 39
  • 56