MediaPlaybackSession.NaturalVideoSizeChanged 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 size of the video in the currently playing media item changes.
// Register
event_token NaturalVideoSizeChanged(TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;
// Revoke with event_token
void NaturalVideoSizeChanged(event_token const* cookie) const;
// Revoke with event_revoker
MediaPlaybackSession::NaturalVideoSizeChanged_revoker NaturalVideoSizeChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackSession,object> NaturalVideoSizeChanged;
function onNaturalVideoSizeChanged(eventArgs) { /* Your code */ }
mediaPlaybackSession.addEventListener("naturalvideosizechanged", onNaturalVideoSizeChanged);
mediaPlaybackSession.removeEventListener("naturalvideosizechanged", onNaturalVideoSizeChanged);
- or -
mediaPlaybackSession.onnaturalvideosizechanged = onNaturalVideoSizeChanged;
Public Custom Event NaturalVideoSizeChanged As TypedEventHandler(Of MediaPlaybackSession, Object)