다음을 통해 공유


MediaCapture.Failed 이벤트

정의

미디어 캡처 중에 오류가 발생할 때 발생합니다.

public:
 virtual event MediaCaptureFailedEventHandler ^ Failed;
// Register
event_token Failed(MediaCaptureFailedEventHandler const& handler) const;

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

// Revoke with event_revoker
MediaCapture::Failed_revoker Failed(auto_revoke_t, MediaCaptureFailedEventHandler const& handler) const;
public event MediaCaptureFailedEventHandler Failed;
function onFailed(eventArgs) { /* Your code */ }
mediaCapture.addEventListener("failed", onFailed);
mediaCapture.removeEventListener("failed", onFailed);
- or -
mediaCapture.onfailed = onFailed;
Public Custom Event Failed As MediaCaptureFailedEventHandler 

이벤트 유형

Windows 요구 사항

앱 기능
backgroundMediaRecording microphone webcam

적용 대상