Skip to content

[Bug]: Custom events don't get fired when jumping to specific time #1666

Open
@shadowusr

Description

@shadowusr

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb-player

Version

2.0.0-alpha.18

Expected Behavior

  1. I record custom events via record.addCustomEvent()
  2. I open a player, click on the middle of the timeline
  3. All custom events before this point are fired and I can handle them via .on('custom-event')

Actual Behavior

  1. I record custom events via record.addCustomEvent()
  2. I open a player, click on the middle of the timeline
  3. No custom events are fired at all

Steps to Reproduce

  1. Create a recording with any custom events
  2. Launch a player, subscribe to custom-events.
  3. Click on the middle of the timeline to skip to certain time halfway through the recording

Testcase Gist URL

No response

Additional Information

I am using custom-events to record things like browser color-scheme changes. During regular replay these events work just fine. But when I jump to a specific time, no events are fired which means that color scheme becomes out of sync.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions