Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [VID-160] call inspector page #1644

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

feat: [VID-160] call inspector page #1644

wants to merge 30 commits into from

Conversation

myandrienko
Copy link
Contributor

@myandrienko myandrienko commented Jan 15, 2025

This is the call inspector page:

image

It shows device encoding and decoding capabilities (inspector does its best to show capabilities in human-readable format), as well as available media input devices.

When connected to a call, it shows a little bit more.

Joining a call

To join an existing call, enter call type, id, API key and user token, and press Enter.

Copy-pasting four values can be annoying. Luckily, inspector supports a special "connection string" format. Every call instance has the call.getConnectionString() method. Grab the connection string, paste it into the first input, and press Enter:

image

Connection string can also passed as the conn= query parameter.

Pronto has a Go to Inspector option in the dev menu:

image

Finally, you can press Join demo call, and a new test call will be created and joined on the current pronto environment. After you leave the test call, its credentials will remain entered, so you can reconnect.

In call

When in-call, a few more options become available.

image

Header shows call cid and current calling state. A little call connection log appears. If there were any problems while joining the call they will be displayed in the log.

Media input device dashes become interactive, allowing to select and toggle devices.

And a couple more dashes appear:

image

Connectivity dash shows current connection state to Coordinator and SFU. Little heartbeats show when status was last polled. There's a button to force close connection - it can be used to emulate network drop or server error.

When publishing, it also features a transport diagram that visualizes the selected candidate pair for the RTC connection. Re-ICE button forces forces renegotiation.

Codecs in use dash list codecs that are currently used in the call. That depends on other call participants, so there's a button to force subscribing to video from all call participants.

Markdown report

At any point you can press the little clipboard button in the top right to copy full report contents in Markdown format.

Client and call instance

Current client and call instances are exposed via the _inspector global variable, so you can inspect it using developer console.

@myandrienko myandrienko marked this pull request as draft January 15, 2025 18:23
@oliverlaz oliverlaz changed the title [VID-160] call inspector page feat: [VID-160] call inspector page Jan 17, 2025
@myandrienko myandrienko marked this pull request as ready for review January 23, 2025 22:57
@myandrienko myandrienko requested review from oliverlaz and tbarbugli and removed request for tbarbugli January 23, 2025 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants