Update '12/player.js'

master
barkaiavital 5 years ago
parent 18ec12b47c
commit 13e3750529

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

Loading…
Cancel
Save