Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Invokes the device microphone to record audio.
Available for
This method is supported only for the mobile clients.
Syntax
Xrm.Device.captureAudio().then(successCallback, errorCallback)
Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
successCallback |
Function | Yes | A function to call when audio is returned. A base64 encoded audio object with the following values is passed to the function: - fileContent: Contents of the audio file. String - fileName: Name of the audio file. String.- fileSize: Size of the audio file in KB. Number.- mimeType: Audio file MIME type. String. |
errorCallback |
Function | Yes | A function to call when the operation fails. |
Return Value
On success, returns a base64 encoded audio object with the values specified earlier.