Table of Contents

onRemoteStreamStalled()

wrtc.onRemoteStreamStalled() is an event function called when you are in a call but you stop receiving media stream from remote client, connection has become broken. Usually users then see a frozen camera image, or stop hearing other end of call.

You can use this event to trig a reconnect() or recall().

This event occurs only in Chrome web browser and only if call.adv.stats_ms has been set.

Occurs

When media stream from remote client has been stalled or regained. Occurs only in Chrome web browser and only if call.adv.stats_ms has been set.

First wrtc.onRemoteStreamStalled() occurs one second after remote stream stalled, with argument seconds = 1.
Then wrtc.onRemoteStreamStalled() occurs every fifth second, with argument seconds = 6, 11, 16 etc

If remote stream has regained wrtc.onRemoteStreamStalled() occurs with argument seconds = 0.

If no remote stream for 30 seconds the call is ended automatically.

Arguments

wrtc.onRemoteStreamStalled(obj, seconds)

Return value

Ignored.

See Also

call.adv.stats_ms