0.0.7 • Published 2 years ago
capacitor-voip v0.0.7
capacitor-voip
Capacitor Voip
Install
npm install capacitor-voip
npx cap syncAPI
initCore()login(...)outgoingCall(...)terminateCall()acceptCall()pauseOrResumeCall()toggleSpeaker()muteMicrophone()- Interfaces
initCore()
initCore() => Promise<CoreResult>Returns: Promise<CoreResult>
login(...)
login(params: AccountParams) => Promise<LoginResult>| Param | Type |
|---|---|
params | AccountParams |
Returns: Promise<LoginResult>
outgoingCall(...)
outgoingCall(params: { address: string; }) => Promise<{ message: string; }>| Param | Type |
|---|---|
params | { address: string; } |
Returns: Promise<{ message: string; }>
terminateCall()
terminateCall() => Promise<void>acceptCall()
acceptCall() => Promise<void>pauseOrResumeCall()
pauseOrResumeCall() => Promise<void>toggleSpeaker()
toggleSpeaker() => Promise<toogleSpeakerResult>Returns: Promise<toogleSpeakerResult>
muteMicrophone()
muteMicrophone() => Promise<muteMicrophoneResult>Returns: Promise<muteMicrophoneResult>
Interfaces
CoreResult
| Prop | Type |
|---|---|
status | boolean |
core_version | string |
LoginResult
| Prop | Type |
|---|---|
success | boolean |
message | string |
account | string |
AccountParams
| Prop | Type |
|---|---|
username | string |
password | string |
domain | string |
transport_type | string |
toogleSpeakerResult
| Prop | Type |
|---|---|
speaker_enabled | boolean |
audio_type | string |
muteMicrophoneResult
| Prop | Type |
|---|---|
is_muted | boolean |