check events cursor before comparing timestamp
This commit is contained in:
@@ -243,7 +243,7 @@ export function createPlayerService(
|
|||||||
addDelay(event, baselineTime);
|
addDelay(event, baselineTime);
|
||||||
|
|
||||||
let end = events.length - 1;
|
let end = events.length - 1;
|
||||||
if (events[end].timestamp <= event.timestamp) {
|
if (!events[end] || events[end].timestamp <= event.timestamp) {
|
||||||
// fast track
|
// fast track
|
||||||
events.push(event);
|
events.push(event);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user