This version of the documentation is outdated!
Click here for the latest released version.
CaptureAudioOptions
封裝的音訊捕獲的配置選項。
屬性
限制: 音訊剪輯設備使用者可以在單個捕獲操作中記錄的最大數目。值必須是大於或等於 1 (預設為 1)。
持續時間: 音訊的音效片段,以秒為單位的最長期限。
快速的示例
// limit capture operation to 3 media files, no longer than 10 seconds each
var options = { limit: 3, duration: 10 };
navigator.device.capture.captureAudio(captureSuccess, captureError, options);
Android 的怪癖
-
duration
參數不受支援。記錄長度不能局限以程式設計方式。
黑莓 WebWorks 怪癖
-
duration
參數不受支援。記錄長度不能局限以程式設計方式。
iOS 的怪癖
-
limit
參數不受支援,所以只有一個記錄可以創建的每個調用。