Skip to content

Commit

Permalink
more visual tweaks to scalability mode and encoder/decoder implementa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
fippo committed Dec 13, 2023
1 parent 96903b5 commit 136f273
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ function processConnections(connectionIds, data) {
from: item[0],
to: (values[index + 1] || [])[0],
label: {
align: 'center',
align: 'left',
text: name + ': ' + item[1],
},
color: index % 2 === 0 ? 'white' : 'rgba(253, 253, 222, 0.3)',
Expand All @@ -672,19 +672,22 @@ function processConnections(connectionIds, data) {
if (name === 'scalabilityMode' && statsType === 'outbound-rtp') {
// set up a x-axis plotbands:
// https://www.highcharts.com/docs/chart-concepts/plot-bands-and-plot-lines
// This one is fully transparent (white with 100% alpha) since it overlaps with encoderImplementation.
data.filter((el, index, values) => {
return !(index > 0 && index < values.length - 1 && values[index - 1][1] == el[1]);
}).forEach((item, index, values) => {
plotBands.push({
from: item[0],
to: (values[index + 1] || [])[0],
label: {
align: 'center',
align: 'right',
text: name + ': ' + item[1],
y: 30,
},
// This one is fully transparent (white with 100% alpha) since it overlaps with encoderImplementation.
color: (255, 255, 255, 1),
// But has a 1px border so it is possible to see changes unrelated to codec switches.
borderWidth: 1,
borderColor: 'rgba(189, 189, 189, 0.3)',
});
});
return;
Expand Down

0 comments on commit 136f273

Please sign in to comment.