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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access