MediaFrameReader.FrameArrived MediaFrameReader.FrameArrived MediaFrameReader.FrameArrived MediaFrameReader.FrameArrived MediaFrameReader.FrameArrived Event

Definition

Occurs when a new frame arrives from the media frame source associated with the MediaFrameReader.

public : event TypedEventHandler<MediaFrameReader, MediaFrameArrivedEventArgs> FrameArrived
// Register
event_token FrameArrived(TypedEventHandler<MediaFrameReader, MediaFrameArrivedEventArgs> const& handler) const;

// Revoke with event_token
void FrameArrived(event_token const& cookie) const;

// Revoke with event_revoker
FrameArrived_revoker FrameArrived(auto_revoke_t, TypedEventHandler<MediaFrameReader, MediaFrameArrivedEventArgs> const& handler) const;
public event TypedEventHandler<MediaFrameReader, MediaFrameArrivedEventArgs> FrameArrived
Public Event FrameArrived As TypedEventHandler (Of MediaFrameReader, MediaFrameArrivedEventArgs)
function onFrameArrived(eventArgs){/* Your code */}


mediaFrameReader.addEventListener("frameArrived", onFrameArrived);
mediaFrameReader.removeEventListener("frameArrived", onFrameArrived);

Remarks

In the handler for the FrameArrived event, call TryAcquireLatestFrame to get a MediaFrameReference representing the latest frame from the media frame source.