Improved video controls

This commit is contained in:
2018-12-08 04:40:27 +09:00
parent 4001f3dad8
commit de70254ce7
4 changed files with 48 additions and 11 deletions

View File

@ -9,11 +9,11 @@ export function playVideo(arn: AnimeNotifier, video: HTMLVideoElement) {
return
}
video.load()
video.addEventListener("loadeddata", () => {
togglePlayVideo(video)
})
video.load()
}
function togglePlayVideo(video: HTMLVideoElement) {