Describes the framework component that was the target of the event.
A locator that points to the publication content related with the event.
Describes the media type of the document related with the event, and thereby what data types to expect in nodeData
This can be for example:
par
node within a SMIL document.Some events will not generate any nodeData. In those cases, mediaType will be the empty string ''
The node data describing the segment target element and its ancestors.
The contents depends on the value of the mediaType
property.
The type of EngineEventTarget object this JSON structure represents.
The index of the reader document that was the target of the event if any.
Generated using TypeDoc
A target related with a SyncMediaSegment, such as the DOM node being spoken by TTS, or active element when playing media overlays.
EPUB Media Overlays reports two targets. One with type "application/smil+xml" containing the "par" node backing this segment (including references to parent "seq" nodes). One with type "application/xhtml+xml" containing the html node targeted by the "par" node.
Each node contains a start and end SyncMediaTimelinePosition. If you for example want to allow user's to skip content such as "table" elements, you can search for nodes with nodeName == "table" and skip to that node's endPosition.