I am wondering that there is the tool or any method I can see what underlying WebRTC peer-to-peer connection?
For simple example, if I am implementing video chat using webrtc, all connection (offer, answer, ice) are established but I can't see the video streaming, how can I debug and see that there is any packet or something sending between these two peers or not.
In webRTC, communication happens to be in P2P connection, rather than the client-server connection. The connection is equally distributed among the two communicating agents through their transport addresses.
WebRTC is a peer-peer communication protocol.
If you're using Chrome, you can navigate to chrome://webrtc-internals . This will show you the offer, answer, ICE states, and statistics about the connection (once it has been established).
If you're using Chrome, you can navigate to chrome://webrtc-internals
. This will show you the offer, answer, ICE states, and statistics about the connection (once it has been established).
For more in-depth debugging, you can see logs of all the STUN pings between candidates by starting Chrome with the following flags:
--enable-logging --v=4
The logs will be in the chrome_debug.log
file in your user data directory: http://dev.chromium.org/user-experience/user-data-directory
There are ways to debug underlying connection status. If you are using a web application, you can navigate to browser statistics. For chrome, chrome://webrtc-internals
(API structure). This thread can be helpful too(using peerJs). For firefox, browse to about:webrtc
.
For native applications, i.e for windows you have take the log from compiler itself. In MS Visual Studio 2015, try Debug > Attach Process > your native application PID, Debug>windows>output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With