capacitor-voice-recorder
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -8,3 +8,6 @@ declare module '@capacitor/core' { | ||
export interface RecordingData { | ||
value: Base64String; | ||
value: { | ||
recordDataBase64: Base64String; | ||
msDuration: number; | ||
}; | ||
} | ||
@@ -11,0 +14,0 @@ export interface GenericResponse { |
@@ -10,15 +10,15 @@ import { WebPlugin } from '@capacitor/core'; | ||
canDeviceVoiceRecord() { | ||
return undefined; | ||
return Promise.reject(new Error('VoiceRecorder does not have web implementation')); | ||
} | ||
hasAudioRecordingPermission() { | ||
return undefined; | ||
return Promise.reject(new Error('VoiceRecorder does not have web implementation')); | ||
} | ||
requestAudioRecordingPermission() { | ||
return undefined; | ||
return Promise.reject(new Error('VoiceRecorder does not have web implementation')); | ||
} | ||
startRecording() { | ||
return undefined; | ||
return Promise.reject(new Error('VoiceRecorder does not have web implementation')); | ||
} | ||
stopRecording() { | ||
return undefined; | ||
return Promise.reject(new Error('VoiceRecorder does not have web implementation')); | ||
} | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "capacitor-voice-recorder", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Capacitor plugin for voice recording", | ||
@@ -11,3 +11,4 @@ "main": "dist/esm/index.js", | ||
"watch": "tsc --watch", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm run build", | ||
"publish": "npm publish" | ||
}, | ||
@@ -33,3 +34,9 @@ "author": "Avihu Harush", | ||
"plugin", | ||
"native" | ||
"native", | ||
"voice", | ||
"audio", | ||
"record", | ||
"recorder", | ||
"ios", | ||
"android" | ||
], | ||
@@ -36,0 +43,0 @@ "capacitor": { |
@@ -38,3 +38,3 @@ # capacitor-voice-recorder | ||
has not been called before this function then the promise will reject with the message "RECORDING_HAS_NOT_STARTED". | ||
in a case of success the recording will be returned to the user in base64 string | ||
in a case of success, the recording will be returned to the user in base64 string and duration in milliseconds | ||
@@ -73,3 +73,3 @@ | ||
/** | ||
* In case of success the promise will resolve with {"value": base64FileString}, | ||
* In case of success the promise will resolve with {"value": { recordDataBase64: string, msDuration: number }}, | ||
* the file will be 3gp for android and m4a for ios. | ||
@@ -76,0 +76,0 @@ * in case of an error the promise will reject with one of the following messages: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1570529
187
394