RingingConfig

interface RingingConfig

Configuration describing the sounds played for incoming and outgoing calls in the Stream Video SDK.

The SDK allows customizing ringing behavior using either Android resources or external audio URIs.

Example using raw resources:

val sounds = ringingConfig(
resRingingConfig(context, R.raw.my_incoming_sound, R.raw.my_outgoing_sound),
defaultMutedRingingConfig()
)

StreamVideoBuilder(sounds = sounds)

Example using URIs:

val sounds = ringingConfig(
uriRingingConfig(incomingUri, outgoingUri),
defaultMutedRingingConfig()
)

StreamVideoBuilder(sounds = sounds)

If a sound URI is null, no sound will be played.

Instances are typically created using one of the provided factory methods: defaultResourcesRingingConfig, deviceRingtoneRingingConfig, resRingingConfig, uriRingingConfig, or emptyRingingConfig.

Creates a RingingConfig using externally provided audio URIs.

Parameters

incomingCallSoundUri

URI of the sound played for incoming calls.

outgoingCallSoundUri

URI of the sound played while the caller waits for the callee to answer.

Properties

Link copied to clipboard
abstract val incomingCallSoundUri: Uri?
Link copied to clipboard
abstract val outgoingCallSoundUri: Uri?

Functions

Link copied to clipboard

Converts a ringing config to a Sounds object.