Update '12/player.js'

master
barkaiavital 5 years ago
parent 0a8d01d5e7
commit e37d0f26e9

@ -1,7 +1,7 @@
var track = document.querySelector("track"),
track_div = document.getElementById("track");
track.addEventListener('cuechange', function () {
let cues = track.track.activeCues; // array of current cues
var track = document.querySelector("track_1"),
track_div = document.getElementById("track_1");
track_1.addEventListener('cuechange', function () {
let cues = track_1.track_1.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