Compare commits
2 commits
9c9b2b000e
...
fd9cd4f3fd
Author | SHA1 | Date | |
---|---|---|---|
fd9cd4f3fd | |||
c0d295c289 |
1 changed files with 0 additions and 2 deletions
|
@ -76,7 +76,6 @@ const videos = [
|
||||||
}
|
}
|
||||||
|
|
||||||
function setActiveVideo(index: number) {
|
function setActiveVideo(index: number) {
|
||||||
console.log("setActive", index);
|
|
||||||
currentVideo?.pause();
|
currentVideo?.pause();
|
||||||
|
|
||||||
currentVideoIndex = index;
|
currentVideoIndex = index;
|
||||||
|
@ -113,7 +112,6 @@ const videos = [
|
||||||
observer.observe(video);
|
observer.observe(video);
|
||||||
|
|
||||||
video.addEventListener("ended", () => {
|
video.addEventListener("ended", () => {
|
||||||
console.log("video ended", "duration", video.duration, "ctime", video.currentTime);
|
|
||||||
// The "ended" event might just mean its buffering.
|
// The "ended" event might just mean its buffering.
|
||||||
if (video == currentVideo && video.duration !== 0 && video.currentTime === video.duration) {
|
if (video == currentVideo && video.duration !== 0 && video.currentTime === video.duration) {
|
||||||
offsetCarousel(1);
|
offsetCarousel(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue