ReadonlyapproximateThe approximate elapsed time from timeline start in milliseconds
ReadonlycancelableIf this event's default action is cancelable. See respective engine event for its definition of default action.
ReadonlydefaultIf this event's default action has been canceled/prevented by a call to preventDefault()
ReadonlyimmediateTrue if stopImmediatePropagation() was called on this event.
ReadonlyisIf this event runs in a "trusted" context, i.e. the event callback is executed during a user-generated event such as "click" or "pointerdown".
ReadonlypropagationTrue if stopPropagation() was called on this event.
ReadonlyreaderThe ReaderView instance this event is related to, if any.
ReadonlysegmentThe index in the timeline of the current active SyncMediaSegment.
ReadonlysyncThe media player related with this event.
ReadonlytargetsThe targets related with the segment, such as the DOM node being spoken by TTS, or active element when playing media overlays.
The number of targets and their types are format specific.
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.
ReadonlytimelineThe current player timeline position.
ReadonlytypeThe type of event.
Prevent the event's default action. See the respective engine event for its definition of default action.
Stops this event from propagating to anymore listener.
Stops this event from propagating to listeners on the ReadingSystemEngine instance, if called from a listener added to a ReaderView instance. If the event has already propagated to the ReadingSystemEngine instance, calling this method has no effect.
Get this event as a plain JSON object.
Used for the engine event "syncMediaSegmentActive"