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)

  • obj - call object raising the event
  • seconds:
    • seconds since the remote stream has stalled, 1, 6, 11, 16 etc
    • or 0 if remote stream is restored again (media stream not stalled any more)

Return value

Ignored.

See Also

ixnx/wrtc/js/api/wrtc/onremotestreamstalled.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0