1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-25 14:10:42 +02:00

Pausing autoplaying videos

#54
This commit is contained in:
Antonio Laguna
2017-04-19 10:37:59 +02:00
parent 510d59e4fd
commit 81e749b77c

View File

@@ -26,6 +26,8 @@ export default class Video {
}
video.removeAttribute('autoplay');
video.pause();
video.currentTime = 0;
const {i} = Slide.getSectionFromEl(video);
const slide = wsInstance.slides[i - 1];