In this document, it uses URL.createObjectURL to set the video source. (This is the code to answer a call).
URL.createObjectURL
var offer = getOfferFromFriend(); na
Because a WebRTC connection involves several steps and what you get from such a connection is a stream. But the src property of the video tag does not accept a stream, but a URL. And this is the way to "convert" a stream to a URL.
src
video