Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose startTime and endTime in the getMetaData() call. #235

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

eoghanmurray
Copy link
Contributor

I was using player.events[0].timestamp but player.events has gone away (since a78da77 I believe)

I was doing things like e.offset = e.timestamp - rrweb_replayer.events[0].timestamp; in client code for constructing timelines.

… `player.events[0].timestamp` but `player.events` has gone away (since a78da77 I believe)
@eoghanmurray
Copy link
Contributor Author

Ok, I see now that .events is now available in .service.state.context.events!
That is a lot of layers of indirection! It would take me a long time to find that by poking around in the javascript debugger :(

@Yuyz0112
Copy link
Member

Thanks @eoghanmurray

@Yuyz0112 Yuyz0112 merged commit 6b0a079 into rrweb-io:master Jul 10, 2020
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.

2 participants