Jaa


MediaFrameSource.FormatChanged Event

Definition

Occurs when the current frame format of the MediaFrameSource changes.

// Register
event_token FormatChanged(TypedEventHandler<MediaFrameSource, IInspectable const&> const& handler) const;

// Revoke with event_token
void FormatChanged(event_token const* cookie) const;

// Revoke with event_revoker
MediaFrameSource::FormatChanged_revoker FormatChanged(auto_revoke_t, TypedEventHandler<MediaFrameSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaFrameSource,object> FormatChanged;
function onFormatChanged(eventArgs) { /* Your code */ }
mediaFrameSource.addEventListener("formatchanged", onFormatChanged);
mediaFrameSource.removeEventListener("formatchanged", onFormatChanged);
- or -
mediaFrameSource.onformatchanged = onFormatChanged;
Public Custom Event FormatChanged As TypedEventHandler(Of MediaFrameSource, Object) 

Event Type

Remarks

Get the current frame format of the media frame source by accessing the CurrentFormat property.

Applies to