Expose startTime and endTime in the getMetaData() call. I was using player.events[0].timestamp but player.events has gone away (since a78da77 I believe) (#235)

This commit is contained in:
Eoghan Murray
2020-07-10 06:37:56 +01:00
committed by GitHub
parent 43001ccbbd
commit 6b0a0795ce

View File

@@ -155,6 +155,8 @@ export class Replayer {
const firstEvent = events[0];
const lastEvent = events[events.length - 1];
return {
startTime: firstEvent.timestamp,
endTime: lastEvent.timestamp,
totalTime: lastEvent.timestamp - firstEvent.timestamp,
};
}