feat: add sendDtmf method to send DTMF tones during a call
This commit is contained in:
parent
b95baa6799
commit
f64284f963
9 changed files with 84 additions and 1 deletions
|
|
@ -136,6 +136,11 @@ await liblinphone.toggleMicrophone();
|
|||
// Hangup
|
||||
await liblinphone.hangupCall();
|
||||
|
||||
// Send DTMF tone during a call
|
||||
await liblinphone.sendDtmf('5'); // Send tone '5'
|
||||
await liblinphone.sendDtmf('#'); // Send tone '#'
|
||||
await liblinphone.sendDtmf('*'); // Send tone '*'
|
||||
|
||||
// Unregister and cleanup
|
||||
await liblinphone.unregister();
|
||||
await liblinphone.stop();
|
||||
|
|
@ -185,6 +190,7 @@ Column(
|
|||
| `Future<CallType> callType()` | Returns the type of the current call (audio/video) |
|
||||
| `Future<bool> toggleVideo()` | Toggles video enabled state during a call |
|
||||
| `Future<bool> toggleMicrophone()` | Toggles microphone muted state |
|
||||
| `Future<bool> sendDtmf(tone)` | Sends a DTMF tone during a call (0-9, *, #, A-D) |
|
||||
| `Future<bool> stop()` | Stops the Linphone core |
|
||||
| `Future<void> syncCurrentState()` | Forces synchronization of current state |
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue