This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Description
I see you are using an intersection observer to auto play and pause the asciinema player:
|
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.