共用方式為


MediaPlaybackTimedMetadataTrackList.PresentationModeChanged 事件

定義

發生于 MediaPlaybackTimedMetadataTrackList 的呈現模式變更時。

// 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) 

事件類型

備註

呼叫 SetPresentationMode來變更簡報模式。

適用於