Audio Doesn't Work in HTML Widget After Book is Published
I'm trying to publish a children's book that's we've created using iBook Author 2.0 (327). We've spent a lot of time building custom HTML widgets using Dashcode to make the book fun. Most of the widgets include interactive HTML as well as audio played via javascript using a video element. We're having trouble with the audio working in our widgets, but only in books that are downloaded from the book store.
When we PREVIEW the book from IBA, everything works great on the iPad. We've tested on multiple devices, with varying versions of iOS. Widgets work great, sound files play, etc.
When we EXPORT the book to an .ibooks file, and install using Dropbox, things also work on the iPad.
When we upload to the store using iTunes Producer, things validate properly, and we've (interestingly enough) even made it all the way through the review process. However we noticed that when we download the book from the market (we used a promo code), none of the sound in our HTML widgets work. We attached the iPhone configuration utility to the iPad to see if there was any kind of error being printed on the console. Sure enough we saw the following:
Feb 27 00:31:49 Davids-iPad iBooks[103] <Error>: <<<< FigPluginView >>>> -[FigPluginView validationFailedWithMessage:resultCode:]: unplayable URL (file://localhost/var/mobile/Media/Books/Purchases/-4590655459692659582.ibooks/ OPS/assets/widgets/TouchAndHear-1.wdgt/Images/tree.mp3) (error=0 -- Movie could not be played.)
I've verified everything in the file URL path that I have control over is indeed in the .ibooks file that I uploaded using ITP. Specifically, "/OPS/assets/widgets/TouchAndHear-1.wdgt/Images/tree.mp3" is definitely there before things get published.
I've got a request in to Apple, but things are moving quite slowly on that front, with no visibility and it's driving me nuts 🙂.
I see other books on the market that were made with IBA and also have audio in the HTML widgets (e.g., "Animals Around the World"). Is there some kind of trick to exporting and packaging that I'm missing?
Thanks for any hints!
iBook, iOS 6.1