MediaFrameReader.FrameArrived 事件

定义

当新帧从与 MediaFrameReader 关联的媒体帧源到达时发生。

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

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

// Revoke with event_revoker
MediaFrameReader::FrameArrived_revoker FrameArrived(auto_revoke_t, TypedEventHandler<MediaFrameReader, MediaFrameArrivedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaFrameReader,MediaFrameArrivedEventArgs> FrameArrived;
function onFrameArrived(eventArgs) { /* Your code */ }
mediaFrameReader.addEventListener("framearrived", onFrameArrived);
mediaFrameReader.removeEventListener("framearrived", onFrameArrived);
- or -
mediaFrameReader.onframearrived = onFrameArrived;
Public Custom Event FrameArrived As TypedEventHandler(Of MediaFrameReader, MediaFrameArrivedEventArgs) 

事件类型

注解

FrameArrived 事件的处理程序中,调用 TryAcquireLatestFrame 获取表示媒体帧源中最新帧的 MediaFrameReference

适用于