@grfzhl/vue-hls-player 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -161,6 +161,7 @@ watch(
|
|
|
161
161
|
watch(
|
|
162
162
|
() => props.cursor,
|
|
163
163
|
(currentTime) => {
|
|
164
|
+
console.log("cursor watch", currentTime)
|
|
164
165
|
highlightActiveCue(currentTime);
|
|
165
166
|
checkCurrentCue(currentTime)
|
|
166
167
|
}
|
|
@@ -207,7 +208,7 @@ function isTxtCueActive(txtCue) {
|
|
|
207
208
|
* @param txtIndex
|
|
208
209
|
*/
|
|
209
210
|
function isWordActive(txtCue, word, wordIndex, txtIndex) {
|
|
210
|
-
console.log("check word active ", txtCue, word, wordIndex,
|
|
211
|
+
console.log("check word active ", txtCue, word, wordIndex, currentCue.value)
|
|
211
212
|
if(!currentCue.value || !word || !txtCue) {
|
|
212
213
|
return false
|
|
213
214
|
}
|
|
@@ -222,6 +223,7 @@ function isWordActive(txtCue, word, wordIndex, txtIndex) {
|
|
|
222
223
|
|
|
223
224
|
function checkCurrentCue(currentCursor) {
|
|
224
225
|
Array.from(vttCues.value).forEach((a, index) => {
|
|
226
|
+
console.log("current cue", a)
|
|
225
227
|
if(currentCursor >= a.start && currentCursor <= a.end) {
|
|
226
228
|
currentCue.value = a.text
|
|
227
229
|
}
|