* Reset the finished flag in goto If the player finishes a replaying a video the `finished` boolean is set to true. This allows the video to be restarted at the beginning if the controller is toggled again. If a user clicks on the progress bar the `finished` boolean is reset so if the `toggle` API is called it starts at the right place. If a user programatically calls `goto` which is the underlying API that handling the progress click calls the next invocation of `toggle` will start the video at the beginning instead of the proper location. * Create controller-finish-flag.md * Update controller-finish-flag.md
185 B
185 B
rrweb-player, rrweb
| rrweb-player | rrweb |
|---|---|
| patch | patch |
Reset the finished flag in Controller goto instead of handleProgressClick so that it is properly handled if goto is called directly.