capacitor-voip
Capacitor Voip
Install
npm install capacitor-voip
npx cap sync
API
initCore()
initCore() => Promise<CoreResult>
Returns: Promise<CoreResult>
login(...)
login(params: AccountParams) => Promise<LoginResult>
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 |