Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get WebRTC logs on Safari Browser

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

like image 889
Aagman Avatar asked Jul 22 '20 14:07

Aagman


People also ask

How do I find WebRTC logs?

Chrome web browserGo back to the "chrome://webrtc-internals/" tab, there will be at least two tabs: GetUserMedia Requests and https://your/appllication/url. You will see logs along with stats graphs. Choose the tab with the name of your application and save the page content as Web Page, Complete.

Does WebRTC work on Safari?

WebRTC iOS Safari supportiOS Safari has been supporting WebRTC since Safari 11.

Does WebRTC work on iOS?

iOS. Unfortunately, WebRTC is not supported on iOS now. Although WebRTC works well on Mac when using Firefox, Opera, or Chrome, it is not supported on iOS. Nowadays, your WebRTC application won't work on Apple mobile devices out of the box.

How do I enable chrome logging for WebRTC?

Chrome. Running Chrome with the following command line flags will turn on INFO and VERBOSE logging for WebRTC: chrome --enable-logging --vmodule=*/webrtc/*=1. More details on Chrome logging can be found here. The log will be named ‘chrome_debug.log’ and saved in the Chrome user data directory.

Will my WebRTC application work in Safari on iOS?

In practice, this means that your web-based WebRTC application will only work in Safari on iOS, and not in any other browser the user may have installed (Chrome, for example), nor in an ‘in-app’ version of Safari.

How to access WebRTC logs for Microsoft Teams?

WebRTC logs can assist Microsoft Support by providing connection details for audio and video calls. Follow the steps to access the WebRTC logs in Edge (Chromium) or Chrome: Open the Teams Web application and reproduce the problem. Go back to the tab that was accessed in step 1 and you will see at least two tabs:

How to enable WebRTC on Opera browser?

To enable WebRTC in the web browser settings, hover over the name Opera in the top left corner and open Preferences. Now, type “ WebRTC ” in the search field and enable the first option in the resulting list. In some cases, Opera blocks the WebRTC technology and to solve this problem, it is enough to check the above WebRTC settings.


2 Answers

Solution

If you open the Safari and also open the console application, you can filter WebRTC logs with these filters:

  • category:WebRTC
  • process:safari (optional)

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:

  • SDP offers and answers
  • ICE candidates
  • WebRTC statistics
  • incoming and outgoing video frame counters

Fun Fact

Based on the official documentation of WebRTC you can't see logs on Safari :)

Useful Infos

  • Do you know there is a WebRTC menu in the Safari. Check the Develop > WebRTC sub-menu
  • Check the Safari Technology Preview app for more options and flags
  • If you’re not logged in as an administrator, you need to enter an administrator name and password to search for and view log messages.
like image 113
mgyky Avatar answered Oct 10 '22 03:10

mgyky


On Safari Version 15.4 (17613.1.17.1.13), useful information can be retrieved this way:

  • In Preferences... -> Advanced, ensure Show Develop menu in menu bar is enabled.
  • In the Develop menu Settings, select the 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.:

enter image description here

like image 1
giavac Avatar answered Oct 10 '22 01:10

giavac