LorettaLei / vue-hls-player

vue hls audio/video
11 stars 10 forks source link

Cannot read property 'initProgress' of undefined #9

Open JoeEarly opened 3 years ago

JoeEarly commented 3 years ago

@LorettaLei I have got this up and going for a HLS m3u8 stream but getting loads of errors in the console.

Installed within a nuxt app and videos play, but just spit out 100s of errors.

stream Screenshot 2021-02-22 at 20 14 05

Can't seem to be able to work out the duration of the current playing stream. Any suggestion as to a fix?

Turning them off clears the error this.media.addEventListener("progress", function(t) { e.onMediaProgress(), e.$emit("onprogress", t); }), this.media.addEventListener("durationchange", function(t) { e.onMediaDurationChange(), e.$emit("ondurationchange", t); }), this.media.addEventListener("seeking", function(t) { e.onMediaSeeking(), e.$emit("onseeking", t); }), this.media.addEventListener("seeked", function(t) { e.onMediaSeeking(), e.$emit("onseeked", t); }), this.media.addEventListener("timeupdate", function(t) { e.onMediaSeeking(), e.$emit("ontimeupdate", t); }),

marceloconcli commented 2 years ago

hey @JoeEarly, did you manage to solve this issue? I've been facing the same problem.

JoeEarly commented 2 years ago

@marceloconcli sorry no I didnt