We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c836577 commit bf4c4e0Copy full SHA for bf4c4e0
BeyondWordsPlayer/BeyondWordsPlayer/player.html
@@ -300,12 +300,12 @@
300
301
if (!currentSegment) continue;
302
303
- if (player.playbackState === "playing" && player.currentSegment?.startTime === currentSegment.startTime) {
+ if (player.playbackState === "playing" && player.currentSegment && player.currentSegment.startTime === currentSegment.startTime) {
304
player.playbackState = "paused";
305
} else {
306
player.playbackState = "playing";
307
308
- if (player.currentSegment?.startTime !== currentSegment.startTime)
+ if (!player.currentSegment || player.currentSegment.startTime !== currentSegment.startTime)
309
player.currentTime = currentSegment.startTime;
310
}
311
0 commit comments