You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
const player = players.get(entry.target);
if (player) {
if (entry.isIntersecting) {
player.play();
} else {
player.pause();
}
}
});
}, options);
It's a nice to have, but unfortunately as it's not configurable, it's like if the autoPlay setting of asciinema is always true.
It would be great if this play-on-view setting was configurable as well and not enabled by default, as in my case I prefer users to start the recording manually.
The text was updated successfully, but these errors were encountered:
I see you are using an intersection observer to auto play and pause the asciinema player:
web-garden/components/TerminalPlayer/TerminalPlayer.astro
Lines 66 to 78 in 2ab3ccd
It's a nice to have, but unfortunately as it's not configurable, it's like if the
autoPlay
setting of asciinema is always true.It would be great if this play-on-view setting was configurable as well and not enabled by default, as in my case I prefer users to start the recording manually.
The text was updated successfully, but these errors were encountered: