mirror of
https://passt.top/passt
synced 2025-05-28 12:25:34 +02:00
demo, ci: Switch to asciinema(1) for terminal recordings
For demos, cool-retro-term(1) looked fancier, but several threads of that and ffmpeg(1) are just messing up with performance testing. The CI videos started getting really big as well, and they were difficult to read. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
be2a7898e9
commit
337f55166f
7 changed files with 146 additions and 112 deletions
test/lib
|
@ -103,19 +103,24 @@ for (var i = 0; i < perf_links.length; i++) {
|
|||
var obj = document.getElementById(perf_links[i][0]);
|
||||
|
||||
obj.addEventListener("click", function(event) {
|
||||
var ci_video = document.getElementById("ci_video");
|
||||
var ci_video = document.getElementById("ci");
|
||||
var top = ci_video.offsetTop - 5;
|
||||
var seek;
|
||||
|
||||
event.preventDefault();
|
||||
ci_video.play();
|
||||
ci_video.pause();
|
||||
for (var i = 0; i < perf_links.length; i++) {
|
||||
if (this.id == perf_links[i][0]) {
|
||||
ci_video.currentTime = perf_links[i][1] - 10;
|
||||
seek = perf_links[i][1];
|
||||
}
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
ci_video_player.dispose();
|
||||
ci_video_player = AsciinemaPlayer.create(
|
||||
"/builds/latest/web/ci.cast",
|
||||
ci_video,
|
||||
{ startAt: seek, autoplay: true });
|
||||
|
||||
window.scrollTo({ top: top, behavior: "smooth" })
|
||||
ci_video.play();
|
||||
}, false);
|
||||
}
|
||||
'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue