playRingtone
Play a named ringtone on the call. A typed convenience over play().
Parameters
name
Ringtone name, a country code such as "us" or "gb".
options
Playback options.
options.duration
Seconds to play the ringtone.
options.volume
Volume adjustment in dB, from -40 to 40.
options.onCompleted
Callback invoked when the operation reaches a terminal state.
Returns
Promise<PlayAction> — An action handle with stop(), pause(), resume(), volume(), and wait() methods.