This version of the documentation is outdated!
Click here for the latest released version.
CaptureErrorCB
如果媒體捕獲操作期間發生錯誤,調用。
function captureError( CaptureError error ) { ... };
說明
如果發生錯誤時試圖發起一個媒體捕獲操作,執行此函數。 故障情形包括捕獲應用程式正忙、 捕獲操作已經發生,或使用者取消該操作之前捕獲任何媒體檔案時。
此函數執行與 [CaptureError](CaptureError.html)
物件,其中包含適當的錯誤code
.
快速的示例
// capture error callback
var captureError = function(error) {
navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
};