====== onEarlyMedia() ====== wrtc.onEarlyMedia() is called when media (sound) is received from a remote client we have called before the actual call begins. Early media is usually used to transmit the ringing sound as media instead of [[ixnx:wrtc:js:api:wrtc:onringing|wrtc.onRinging()]] When this event occurs you should silence any ringing sounds you might have started playing in [[ixnx:wrtc:js:api:wrtc:onringing|wrtc.onRinging()]] ===== Occurs ===== When early media (sound) is received from a client we have called before [[ixnx:wrtc:js:api:call:is|call.is("connected")]] returns true. ===== Arguments ===== wrtc.onEarlyMedia(call) * call - the [[ixnx:wrtc:js:api:call:start|call]] object raising the event