Shital
Shital

Reputation: 45

How to integrate epub file in own ebook reader application using ExpressPlay sdk?

I have to integrate epub files in our existing ebook reader application by using ExpressPlay Sdk.

However, I am unable to get solution. I got some idea by given link : https://www.expressplay.com/ebooks/ but it is still not able to integrate.

Any idea will be appreciated. Thanks in advance.

Upvotes: 3

Views: 1813

Answers (1)

Rahul Upadhyay
Rahul Upadhyay

Reputation: 3523

We need to setup proper details while encrypting file. And need to use token for the decryption.

So here are the steps to follow :

1. Encryption using bento4 packaging tools : (You can find tools here : https://www.bento4.com/downloads/ ) :

  • Extract the package to some dir and open Terminal or CMD to that path
  • Follow the command

mp4dcfpackager --method CBC --key CONTENT_KEY:00112233445566778899aabbccddeeff --content-id CONTENT_ID --content-type CONTENT_TYPE INPUT_FILE_PATH OUTPUT_FILE_NAME

Where,

2. Create a Marlin BB License Token (BB Token is used for offline validation):

Add following parameters from https://admin.expressplay.com/bblicensetoken/ :

  • Content ID
  • Content Key
  • Rights Type : "Buy to Own"
  • Output Control Override Id : "urn:marlin:organization:intertrust:wudo"
  • Output Control Override Parameter : "ImageContraintLevel"
  • Output Control Override Value : "0"
  • Wudo Extension = true
  • Click on Get Token
  • Store file to your project

Now, you can get an idea from the samples they provided in SDK that how to use this token file with project.

If you still have any confusion let me know. I've followed the same steps for android so it should work for iOS too.

Thanks.

Upvotes: 3

Related Questions