Creates a SyncMediaTimeline that can be used with a ISyncMediaPlayer
to play the contents of this audiobook.
The returned promise is rejected if the resulting timeline is empty.
The reader documents that should be part of the timeline.
Options for the IEpubMediaOverlaySyncMediaTimeline.
A function called several times indicating the create progress as a value between 0 and 1. You can also listen on the event 'syncMediaTimelineCreateProgress' to get this information.
Destroy this instance, allowing used resources to be garbage collected. This method has the same effect as calling readingSystemEngine.unloadPublication(),
Fetch the resolved IContentLocation from a locator, ILocatorData, URL, URI, URN, IRI.
In contrast to UnresolvedContentLocation, a ContentLocation knows its position within the publication content and can thereby be used to compare and sort ContentLocation instances synchronously.
See IContentLocation
for more information
Fetch the preferred aspect ratio of pages in this publication defined as (width / height)
Fetch the complete publication navigation as defined in the source publication.
Fetches an UnresolvedContentLocation from a Locator, ILocatorData, URL, URI, URN, IRI. Can be used for extracting various publication data related with the Locator.
The units of measure that can be used when creating ContentPositionTimeline objects using this publication.
See IEpubReaderPublication.createContentPositionTimeline()
and IPdfReaderPublication.createContentPositionTimeline()
for how to create ContentPositionTimeline objects.
The sync media formats available in this publication.
The base URL used when creating Locators pointing to content in this publication.
Get the LocatorFactory used when creating new Locators.
Get the options related to processing and presentation of the Audiobook.
Get the IReaderPublicationStorage instance for this publication. Use the returned instance to manage the publication's storage, such as 'localStorage' for EPUB. This allows applications to save and restore the state of the IReaderPublicationStorage across reading-sessions and devices.
Get the IReadingSystemEngine that created this instance.
Get the source publication this instance is using.
Get an ordered list of IReaderDocument instances that are part of this publication.
Note that the ReaderDocuments in an IWpAudiobookReaderPublication are purely audio and can not be rendered by a ReaderView.
If destroy() has been called on this instance.
If the source URL of the locator, (that is URL without the hash) matches the any source URL in the Publication.
If this method returns true, the locator MAY target content in the publication, depending on selectors inside the Locator. If this method return false, the locator DOES NOT target any content in the publication.
Sets new IReaderPublicationOptions for this instance. Existing properties are preserved if they aren't defined in the passed options object. Properties explicitly set to undefined will be restored to their default values.
Changes affecting the appearance or behavior of the ReaderPublication when used with a ReaderView will not take effect until ReaderView.refresh(true) is called.
Get this instance as a JSON serializable object.
Generated using TypeDoc
NOTE: This feature is currently in BETA. Expect breaking changes to the APIs related with WpPublication/Audiobooks until the final 3.0.0 release.
Format specific API for Web Publication Audiobook Publications.
In an IWpAudiobookReaderPublication instance, the ReaderDocuments returned by
getSpine()
are describing audio resources and can therefore not be rendered by a ReaderView.Use
createSyncMediaTimeline()
to create a ISyncMediaTimeline instance which then can be loaded into a SyncMediaPlayer to play the Audiobook. To create a SyncMediaPlayer, seeReadingSystemEngine.createSyncMediaPlayer()