MediaPlaybackTimedMetadataTrackList.PresentationModeChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the presentation mode of the MediaPlaybackTimedMetadataTrackList changes.
// Register
event_token PresentationModeChanged(TypedEventHandler<MediaPlaybackTimedMetadataTrackList, TimedMetadataPresentationModeChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void PresentationModeChanged(event_token const* cookie) const;
// Revoke with event_revoker
MediaPlaybackTimedMetadataTrackList::PresentationModeChanged_revoker PresentationModeChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackTimedMetadataTrackList, TimedMetadataPresentationModeChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackTimedMetadataTrackList,TimedMetadataPresentationModeChangedEventArgs> PresentationModeChanged;
function onPresentationModeChanged(eventArgs) { /* Your code */ }
mediaPlaybackTimedMetadataTrackList.addEventListener("presentationmodechanged", onPresentationModeChanged);
mediaPlaybackTimedMetadataTrackList.removeEventListener("presentationmodechanged", onPresentationModeChanged);
- or -
mediaPlaybackTimedMetadataTrackList.onpresentationmodechanged = onPresentationModeChanged;
Public Custom Event PresentationModeChanged As TypedEventHandler(Of MediaPlaybackTimedMetadataTrackList, TimedMetadataPresentationModeChangedEventArgs)
Event Type
TypedEventHandler<MediaPlaybackTimedMetadataTrackList,TimedMetadataPresentationModeChangedEventArgs>
Remarks
Change the presentation mode by calling SetPresentationMode.