共用方式為


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 ,代表媒體畫面來源的最新畫面。

適用於