Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using GetFilterChainByteStream (ManifestItemPtr, ByteStream*) #132

Closed
yuch1001 opened this issue Dec 3, 2014 · 2 comments
Closed

using GetFilterChainByteStream (ManifestItemPtr, ByteStream*) #132

yuch1001 opened this issue Dec 3, 2014 · 2 comments
Assignees

Comments

@yuch1001
Copy link

yuch1001 commented Dec 3, 2014

i modified package.cpp in jni, and epub3. just don't use Archive's pointer.
get Archive's pointer and get ManifestItemPtr.
and use this, call GetFilterChainByteStream(mPtr, bstream*)
and also PassThroughFilter.Register() is allowed, and sniffer change to return true.
PassThroughFilter registered, no others.
and execute app, try to read byte then occur FATAL error.

it's my idea so that maybe it's not good. also error occuring is natural.

but

i download readium-sdk from feature/AndroidByteRangeStream.

and use pckg.InputStream(uri, false) on no modify anything.

and execute app, try to read epub.
occur FATAL error SIGILL

can i use sdk in feature/AndroidByteRangeStream?

and can i know why occur FATAL error?

i read TODO in jni ava_org_readium_sdk_android_Package_nativeInputStreamForRelativePath() package.cpp.

it say about unique_ptr and shared_ptr. is there problem about ptr's type?

please help.

i want to use filterchain and decrypt my encrypted epub. thank you.

@danielweck
Copy link
Member

Hello, this readium-sdk feature branch is "work in progress":
https://github.com/readium/readium-sdk/tree/feature/AndroidByteRangeStream
There will be related updates in this SDKLauncher-Android feature branch as well:
https://github.com/readium/SDKLauncher-Android/tree/feature/obfuscatedFonts

Just out of interest, have you tried SDKLauncher-iOS and SDKLauncher-OSX to handle your encrypted EPUBs? (both in develop branch, including the readium-sdk and readium-shared-js submodules)
We would love to hear your feedback, as we recently introduced some changes in the way encrypted media is handled via the Content Filter Chain mechanism. We are particularly interested in audio/video streaming ("byte range" support). Eventually, the Android codebase will catch-up with iOS and OSX, so you can use these "reference" platforms to test your decryption algorithm.

There is a wiki page to help you get started:
https://github.com/readium/readium-sdk/wiki/ContentFilterEncryptedMedia

Thanks!
Daniel

@yuch1001
Copy link
Author

yuch1001 commented Dec 4, 2014

oh! i see.

thank you for answer me, Daniel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants