Frames.FrameArrived Frames.FrameArrived Frames.FrameArrived Frames.FrameArrived Frames.FrameArrived Event

Definition

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

public : event TypedEventHandler FrameArrived<MediaFrameReader, MediaFrameArrivedEventArgs>
// 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_revoker_t, TypedEventHandler<MediaFrameReader, MediaFrameArrivedEventArgs> const& handler) const;
public event TypedEventHandler FrameArrived<MediaFrameReader, MediaFrameArrivedEventArgs>
Public Event TypedEventHandler FrameArrived( Of ( Of MediaFrameReader ), ( Of 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.