MediaCapture.Failed MediaCapture.Failed MediaCapture.Failed MediaCapture.Failed MediaCapture.Failed Event

Definition

Raised when an error occurs during media capture.

public : 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
Failed_revoker Failed(auto_revoke_t, MediaCaptureFailedEventHandler const& handler) const;
public event MediaCaptureFailedEventHandler Failed
Public Event Failed As MediaCaptureFailedEventHandler
function onFailed(eventArgs){/* Your code */}


mediaCapture.addEventListener("failed", onFailed);
mediaCapture.removeEventListener("failed", onFailed);