Markers

Some media files can have embedded markers at specific points in time. There are a few different types of markers, and each one can have associated text. For example, many media players recognize markers of type “caption” and automatically overlay their text at the appropriate times. Some video files use index markers to mark chapters or have other bookmarks that aid in user navigation, much like with a DVD. Markers also enable the host to perform custom actions in sync with specific events in the media.

MediaElement exposes these markers with its Markers property. This is a collection of TimelineMarker objects that expose three simple properties: Text (a string), Type (a string), and Time (a TimeSpan). When media content with embedded ...

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.