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
|