This version of the documentation is outdated!
Click here for the latest released version.
CaptureVideoOptions
封裝視頻捕獲的配置選項。
屬性
限制: 該設備的使用者可以在單個捕獲操作中捕獲的視訊短片的最大數目。值必須是大於或等於 1 (預設為 1)。
持續時間: 視訊短片,以秒為單位的最長期限。
快速的示例
// limit capture operation to 3 video clips
var options = { limit: 3 };
navigator.device.capture.captureVideo(captureSuccess, captureError, options);
黑莓 WebWorks 怪癖
- 不支援的持續時間參數,所以錄製的長度不能以程式設計方式加以限制。
iOS 的怪癖
- 限制參數不受支援。只有一個視頻記錄每次調用的。