awslabs / amazon-kinesis-video-streams-webrtc-sdk-js

JS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
https://awslabs.github.io/amazon-kinesis-video-streams-webrtc-sdk-js/examples/index.html
Apache License 2.0
288 stars 143 forks source link

Time-to-first-frame metrics benchmarking and timeline chart #286

Closed niyatim23 closed 9 months ago

niyatim23 commented 10 months ago

Issue #, if available:

What was changed? Introduced a new feature which allows receiving master-side metrics in the JS viewer

Why was it changed? It would be easier to understand the time-to-first-frame and which process on both sides is time-consuming and how much time does each API call take

How was it changed?

What testing was done for the changes? Tested the changes locally by running the master first and the viewer first to see that the plot had all the relevant values

Viewer is started first

Screenshot 2023-11-14 at 9 10 02 AM

Master is started first

Screenshot 2023-11-14 at 9 10 47 AM

Tooltip Untitled

Datachannel messages from master

Screenshot 2023-11-14 at 9 11 16 AM

Checkbox

Screenshot 2023-12-19 at 9 00 54 PM

Timer

Screenshot 2023-12-19 at 8 56 01 PM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sirknightj commented 10 months ago

We'll merge this in at the same time as https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/pull/1846