MediaPlaybackTimedMetadataTrackList.PresentationModeChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当 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)
事件类型
TypedEventHandler<MediaPlaybackTimedMetadataTrackList,TimedMetadataPresentationModeChangedEventArgs>
注解
通过调用 SetPresentationMode 更改演示模式。