From 978aca1f9aac3148909d20f69d0e52ea11d6cb08 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Sat, 23 Oct 2021 16:21:42 +0300 Subject: [PATCH] use loadeddata instead of loadedmetadata send event closer to actual initial start time of video --- providers/song-info-front.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/song-info-front.js b/providers/song-info-front.js index ccf0b764..674faeb7 100644 --- a/providers/song-info-front.js +++ b/providers/song-info-front.js @@ -29,7 +29,7 @@ function setup() { } function injectListener() { - document.querySelector('video').addEventListener('loadedmetadata', () => { + document.querySelector('video').addEventListener('loadeddata', () => { const data = api.getPlayerResponse(); ipcRenderer.send("song-info-request", JSON.stringify(data)); });