It appears that an .mp4 reference within an HTML widget produces an error "The HTML Dashcode file “WIDGETNAME” wasn’t added. The file contains a media file that isn’t in a supported format." We believe this is a bug in iBooks Author. Apple's Help page mentions that the mp4 format is supported in widgets, though that doesn't seem to be the case.
Here's a workaround:
Here's a workaround:
If you have a .mp4 video within a widget you'd like to show, you'll need to reference it within your widget by using an iframe:
1) Upload your HYPE document to a server.
2) Reference it from Index.html using an iframe. Here's example iFrame Code, which needs to be placed in the same location as your Hype div: <iframe src="http://dl.dropbox.com/u/7796/try5/try5.html" width="600" height="400"></iframe>
3) Make sure the document size of your Hype document is reflected in the dimensions of Info.plist.
If you include this in an iBook, your reader will need to be online to access it.
A demo file is attached to the bottom of this article.
If you include this in an iBook, your reader will need to be online to access it.
A demo file is attached to the bottom of this article.