Update '12/player.js'

master
barkaiavital 5 years ago
parent c0a5d56757
commit 18ec12b47c

@ -1,5 +1,8 @@
var track = document.querySelector("track");
var track = document.querySelector("track"),
track_div = document.getElementById("track");
track.addEventListener('cuechange', function () {
let cues = track.track.activeCues; // array of current cues
console.log("cuechange", cues, cues[0].text, cues[0].startTime, cues[0].endTime);
var d = JSON.parse(cues[0].text);
console.log("d",d);
});

Loading…
Cancel
Save