Reputation: 704
I have been trying to get the webrtc logs for my web application running over safari browser, similar to what we get in firefox by going to the page about:webrtc
and on chrome by using chrome://webrtc-internals
.
Alternatively, Is there any js API for webrtc to get the logs on the console itself, similar to what we use in Native Android and iOS applications using the RTCLogger.
Thanks in Advance
Upvotes: 23
Views: 7284
Reputation: 1424
First, enable Safari > Settings > Advanced > Show Develop menu in menu bar
as bellow:
Then, click Safari > Develop > Show JavaScript Console
as bellow:
Next, click the Setting
icon, select the Console
tab, set the WebRTC Logging
to Basic
, as bellow:
Back to the JavaScript Console
, there are WebRTC logs, as bellow:
Test on Safari 16.6
Upvotes: 3
Reputation: 8483
If you open the Safari and also open the console application, you can filter WebRTC logs with these filters:
just copy-paste them one by one to the search bar in the console application. Actually, the second one is optional (process:safari).
I'm not sure about the others but at least you can see:
Based on the official documentation of WebRTC you can't see logs on Safari :)
Upvotes: 2
Reputation: 1008
On Safari Version 15.4 (17613.1.17.1.13)
, useful information can be retrieved this way:
Preferences...
-> Advanced
, ensure Show Develop menu in menu bar
is enabled.Console
tab, then ensure WebRTC Logging
is not Off
(and so choose either Basic
or Verbose
).At that point the Console will show WebRTC events and data structures.
e.g.:
Upvotes: 3