MediaCapture.Failed Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when an error occurs during media capture.
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
Event Type
Windows requirements
App capabilities |
backgroundMediaRecording
microphone
webcam
|