简体   繁体   中英

How to use WebRTC without an answer?

In the absence of a signalling server for coordinating the initial exchange, does WebRTC provide any way to allow the responder to send information freely to the caller, if the responder has only received an offer and has no other methods of communication with the caller?

(There's no signalling server because the web app must be useable offline. Any method to establish a connection with only one exchange of information would also be useful.)

Sorry, it's a long and weird question.

I guess by offline you mean that you have two parties that will connect through a network not connected to the internet.

Signaling is just a way to transmit information between the two parties. For the sake of example it can even be manual copy and paste. Even one of the parties can play the role of a server if the other one has a way of connecting to it (doable within the same network).

Without some kind of signaling mechanism, a WebRTC connection is not possible. And signaling is not part of the WebRTC specification, nor of any implementation.

Webrtc needs a signalling system for establishing peer to peer connection. Now the thing to notice is why it needs signalling.

In the process of establishing peer connection the two parties exchange sdp which contains information such as the IP and Port at both ends at which the media/data packets will get exchanged. Similarly it contains the encoding/decoding or codec to be used plus many other useful things.Thus without the exchange of these packets between both the parties any communication can't be possible.

That is why it is not possible at least in case of webrtc that without the communication from both sides a peer connection can be established.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM