MediaCapture.Failed 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在媒体捕获期间发生错误时引发。
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
|