You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|params.myRole | Returns call logs of the specified role. (e.g. if myRole is `'dc_callee'`, query will return only the callee’s call logs.) |
432
432
|params.endResults | Returns the call logs for specified results. If more than one result is specified, they are processed as `OR` condition and all call logs corresponding with the specified end results will be returned. For example, if endResults is `['NO_ANSWER'`, `'CANCELED']`, only the `NO_ANSWER` and `CANCELED` call logs will be returned.|
| DIALING | Refers to a sound that is played on a caller’s side when the caller makes a call to a callee. |
439
+
| RINGING | Refers to a sound that is played on a callee’s side when receiving a call. |
440
+
| RECONNECTING | Refers to a sound that is played when a connection is lost, but immediately tries to reconnect. Users are also allowed to customize the ringtone. |
441
+
| RECONNECTED | Refers to a sound that is played when a connection is re-established. |
| type | SoundType | Specifies the sound type to be used according to the event. |
451
+
| url | string | Specifies the URL of the sound file. You can use the URI of the asset on the server or ObjectURL created by `URL.createObjectURL()`. |
452
+
453
+
>Note: In modern web browsers, they have their own autoplay policies and can block the `addDirectCallSound()` method from being directly executed.
454
+
To solve this problem, for Chrome and Firefox, the `addDirectCallSound()` method should be called after a user’s event such as clicking a button. For Safari, you have to call the `addDirectCallSound()` method in the event listener of a user’s event such as `onclick()` .
| type | SoundType | Specifies the type of sound to be used according to the event. |
469
+
434
470
## Additional information: call results
435
471
Information relating the end result of a call can be obtained at any time via the `directCall.endResult` property, best accessed within the `onEnded()` callback.
0 commit comments