Skip to content

Replayer 'Skip inactive' - remove disable state and keep access to controls - #2020

Open
eoghanmurray wants to merge 2 commits into
rrweb-io:mainfrom
rrweb-cloud:skip-inactive-keep-controls
Open

eoghanmurray wants to merge 2 commits into
rrweb-io:mainfrom
rrweb-cloud:skip-inactive-keep-controls

Conversation

@eoghanmurray

Copy link
Copy Markdown
Collaborator

No description provided.

@changeset-bot

changeset-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1839eaf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
@rrweb/all

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/all@4ec37b0

@rrweb/browser-client

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/browser-client@4ec37b0

@rrweb/packer

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/packer@4ec37b0

@rrweb/record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/record@4ec37b0

@rrweb/replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/replay@4ec37b0

rrdom

npm i https://pkg.pr.new/rrweb-io/rrweb/rrdom@4ec37b0

rrdom-nodejs

npm i https://pkg.pr.new/rrweb-io/rrweb/rrdom-nodejs@4ec37b0

rrvideo

npm i https://pkg.pr.new/rrweb-io/rrweb/rrvideo@4ec37b0

rrweb

npm i https://pkg.pr.new/rrweb-io/rrweb@4ec37b0

rrweb-player

npm i https://pkg.pr.new/rrweb-io/rrweb/rrweb-player@4ec37b0

rrweb-snapshot

npm i https://pkg.pr.new/rrweb-io/rrweb/rrweb-snapshot@4ec37b0

@rrweb/types

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/types@4ec37b0

@rrweb/utils

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/utils@4ec37b0

@rrweb/rrweb-plugin-canvas-webrtc-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-canvas-webrtc-record@4ec37b0

@rrweb/rrweb-plugin-canvas-webrtc-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-canvas-webrtc-replay@4ec37b0

@rrweb/rrweb-plugin-console-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-console-record@4ec37b0

@rrweb/rrweb-plugin-console-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-console-replay@4ec37b0

@rrweb/rrweb-plugin-network-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-network-record@4ec37b0

@rrweb/rrweb-plugin-network-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-network-replay@4ec37b0

@rrweb/rrweb-plugin-sequential-id-record

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-sequential-id-record@4ec37b0

@rrweb/rrweb-plugin-sequential-id-replay

npm i https://pkg.pr.new/rrweb-io/rrweb/@rrweb/rrweb-plugin-sequential-id-replay@4ec37b0

commit: 4ec37b0

… messing up the internal state which is fixed by a `backToNormal` call
@eoghanmurray
eoghanmurray force-pushed the skip-inactive-keep-controls branch from 83193b3 to 1839eaf Compare November 23, 2026 16:41
…witch `disabled` prop

Lock in that a user-initiated reposition cancels an in-progress inactive-skip
and restores the recorded normal speed. The guard is the `backToNormal()` call
at the top of `Replayer.play()`; these tests assert the behaviour (speed FSM
back to `normal`, timer speed restored) rather than the placement, so they fail
if a future refactor lets a seek bypass it — in particular the seek-and-pause
case, which today only reaches the guard because `pause(timeOffset)` delegates
to `play(timeOffset)`.

Each test injects the skipping state directly via a FAST_FORWARD send instead of
waiting on organic fast-forward timing, keeping them deterministic:
- seek during a skip (play offset)
- seek-and-pause during a skip (pause offset)
- in-place pause freezes the skip; resume restores it

Also remove the now-unused `disabled` prop from the Switch component (and its
dead styles/bindings): nothing passes it since the controls stopped being
disabled during skipping, and Switch is internal to the player.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant