videogular / videogular2

The HTML5 video player for Angular 2
https://videogular.github.io/videogular2-showroom/#/
MIT License
672 stars 211 forks source link

Cannot set property 'isLive' of undefined #874

Open abgrano opened 4 years ago

abgrano commented 4 years ago

Description

ERROR TypeError: Cannot set property 'isLive' of undefined at i. (vg-hls.js:110) at i.d.emit (hls.min.js:1) at i.trigger (hls.min.js:1) at i.s._handlePlaylistLoaded (hls.min.js:1) at i.s._handleTrackOrLevelPlaylist (hls.min.js:1) at i.s.loadsuccess (hls.min.js:1) at e.t.readystatechange (hls.min.js:1) at XMLHttpRequest.wrapFn (zone-evergreen.js:1191) at ZoneDelegate.invokeTask (zone-evergreen.js:391) at Object.onInvokeTask (core.js:34182)

emilypotter commented 4 years ago

Did you manage to solve this?

shuZro commented 4 years ago

any updates on this?

leojkwan commented 4 years ago

ran into same problem

wrolke commented 4 years ago

Having this issue as well.

cyberluke commented 4 years ago

Same here

ppetzold commented 3 years ago

I think it only occurs when only binding vgHls but not vgMedia.

Try this:

<video #media [vgMedia]="media" [vgHls]="source" type="video/mp4"></video>
harry9345 commented 3 years ago

I think it only occurs when only binding vgHls but not vgMedia.

Try this:

<video #media [vgMedia]="media" [vgHls]="source" type="video/mp4"></video>

I had the same problem, but when I bind it with #media [vgMedia]="media" it gives me this error => Type 'HTMLVideoElement' is missing the following properties from type 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msGraphicsTrustStatus, and 13 more. [vgMedia]="myMedia"

jakecollins1 commented 3 years ago

I was seeing this when my component containing my videostream was destroyed. I managed to solve this by setting api.isPlayerReady to false in my ngOnDestroy() function.