@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.
@@ -38,7 +38,6 @@
38
38
  :autoplay="autoplay && isMuted"
39
39
  >
40
40
  <source
41
- :src="link"
42
41
  type="application/x-mpegURL"
43
42
  />
44
43
  <track
@@ -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, txtIndex)
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grfzhl/vue-hls-player",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"