Table of Contents
onEndCallObject()
wrtc.onEndCallObject() is an event function called when a call object is about to be destroyed. (Call has ended and object is not needed any more.)
You can use this event to eg remove video and other HTML elements you do not need any more.
Occurs
A call object is about to be destroyed by wrtc.
Arguments
wrtc.onEndCallObject(callobj)
- callobj - the call object about to be destroyed
Return value
Ignored.
Example
wrtc.onEndCallObject = function(callobj) {
...
callobj.remoteVideo.outerHTML = "";
...
}