captureVideo (Client API reference)
Invokes the device camera to record video.
Available for
This method is supported only for the mobile clients.
Syntax
Xrm.Device.captureVideo().then(successCallback, errorCallback)
Parameters
Parameter Name | Type | Required | Description |
---|---|---|---|
successCallback |
Function | Yes | A function to call when Video is returned. A base64 encoded Video object with the following values is passed to the function: - fileContent : Contents of the Video file. String - fileName : Name of the Video file. String.- fileSize : Size of the Video file in KB. Number.- mimeType : Video file MIME type. String. |
errorCallback |
Function | Yes | A function to call when the operation fails. |
Return Value
On success, returns a base64 encoded Video object with the values specified earlier.
Exceptions
Related articles
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho