This repository has been archived by the owner on Jul 29, 2022. It is now read-only.
2.0.0-alpha.2
Pre-release
Pre-release
mickael-menu
released this
29 Oct 09:37
·
65 commits
to develop
since this release
Take a look at the migration guide
Added
- The Publication Services API allows to extend a
Publication
with custom implementations of known services. This version ships with a few predefined services:PositionsService
provides a list of discrete locations in the publication, no matter what the original format is.CoverService
provides an easy access to a bitmap version of the publication cover.
- The Composite Fetcher API can be used to extend the way publication resources are accessed.
- Support for exploded directories for any archive-based publication format.
- Content Protection handles DRM and other format-specific protections in a more systematic way.
- LCP now ships an
LcpContentProtection
implementation to be plugged into theStreamer
. - You can add custom
ContentProtection
implementations to support other DRMs by providing an instance to theStreamer
.
- LCP now ships an
Changed
- The
Publication
andContainer
types were merged together to offer a single interface to a publication's resources.- Use
publication.get()
to read the content of a resource, such as the cover. It will automatically be decrypted if aContentProtection
was attached to thePublication
.
- Use
Fixed
OutOfMemoryError
occuring while opening large publications are now caught to prevent crashes. They are reported asResource.Exception.OutOfMemory
.- Readium can now open PDF documents of any size without crashing. However, LCP protected PDFs are still limited by the available memory.