Skip to content

forward buffer logging - #276

Open
iljagav wants to merge 1 commit into
cta-wave:stagingfrom
iljagav:feat-forward-buffer-logging
Open

iljagav wants to merge 1 commit into
cta-wave:stagingfrom
iljagav:feat-forward-buffer-logging

Conversation

@iljagav

@iljagav iljagav commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@FritzHeiden FritzHeiden left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address these findings

Comment thread lib/player.js
Comment on lines +1351 to +1354
currentTime: video.currentTime,
bufferedRanges: bufferedRanges,
duration: duration,
role: _role,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This payload is never actually used so we may discard it.

Comment thread lib/dpctf-testharness.js
}

var trigger = reason || "update";
logger.info(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use debug instead of info

Comment thread lib/dpctf-testharness.js
Comment on lines -98 to -109
var bufferedLogs = [];
var targetToken = token || "local";
logger.on("log", function (log) {
bufferedLogs.push(log);
var test = "/" + testInfo.path;
WaveService.sendLogs(targetToken, test, [log]);
});
setInterval(function () {
if (bufferedLogs.length > 0) {
var test = "/" + testInfo.path;
var logs = bufferedLogs.slice();
bufferedLogs = [];
WaveService.sendLogs(token, test, logs);
}
}, 3000);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert these changes

Comment thread lib/dpctf-testharness.js
Comment on lines +688 to +694
if (typeof player.getForwardBufferAtCurrentTime === "function") {
try {
forwardBuffer = player.getForwardBufferAtCurrentTime();
} catch (error) {
forwardBuffer = null;
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The getForwardBufferAtCurrentTime function doesn't exist in the player, so this will never succeed. You can remove this entire if-condition

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