|
|
@ -1,7 +1,7 @@
|
|
|
|
var track_1 = document.querySelector("track_1"),
|
|
|
|
var track_1 = document.querySelector("track_1"),
|
|
|
|
track_div_1 = document.getElementById("track_1");
|
|
|
|
track_div_1 = document.getElementById("track_1");
|
|
|
|
track.addEventListener('cuechange', function () {
|
|
|
|
track.addEventListener('cuechange', function () {
|
|
|
|
let cues = track.track_1.activeCues; // array of current cues
|
|
|
|
let cues = track_1.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 d1 = JSON.parse(cues[0].text);
|
|
|
|
var d1 = JSON.parse(cues[0].text);
|
|
|
|
console.log("d1",d1);
|
|
|
|
console.log("d1",d1);
|
|
|
|