The Online Digital Talking Book Reader (Demo)




Blog


Friday, March 27, 2009
By Andrew Tokeley,  Categories: ButtercupReader

One of the cool features of ButtercupReader is the ability to open DAISY books that you have published on your own web site. Once you’ve followed the few simple steps below people will be able to link to your books using a link that looks something like,

Example of an anchor to a server book (sorry it's not selectable yet)

All you are doing is setting the ref query string parameter to the URL of the package file (*.opf) that describes your book. Easy.

Now, in order for this to work there are a couple of things that you need to do on the web server that is going to be hosting the DAISY book files.

 

Add MIME Types for DAISY File Extensions

In order for your web server to be able to serve up requests for DAISY files you will need to add some additional MIME types. Currently the only file extensions that ButtercupReader relies on are,

 

Extension MIME Type
.opf text/xml
.smil application/smil
.ncx application/x-dtbncx+xml

 

Allow ButtercupReader Access to Your Domain

By default Silverlight is not permitted to access resources (like your DAISY files) on another domain (like your web site). But this is easy to fix. All you need to do is to add a file, naming it clientaccesspolicy.xml, to the root of your web site. This file should look like,

Example of clientaccesspolicy.xml file (sorry it's not selectable yet)

For more information check out the official documentation.

So, give it a try and let me know how you get on.

Comments [1]   |   Permalink  


© Copyright 2013, Intergen.