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:
@@ -155,6 +155,8 @@ export class Replayer {
|
|||||||
const firstEvent = events[0];
|
const firstEvent = events[0];
|
||||||
const lastEvent = events[events.length - 1];
|
const lastEvent = events[events.length - 1];
|
||||||
return {
|
return {
|
||||||
|
startTime: firstEvent.timestamp,
|
||||||
|
endTime: lastEvent.timestamp,
|
||||||
totalTime: lastEvent.timestamp - firstEvent.timestamp,
|
totalTime: lastEvent.timestamp - firstEvent.timestamp,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user