videogular / videogular2

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

Unable to catch network error using default listner in videogular2 #866

Open vinodkumar898 opened 4 years ago

vinodkumar898 commented 4 years ago

this.vgAPI.getDefaultMedia() .subscriptions .error .subscribe( (error) => { console.log(error); }); This doesn't seem to work

Even tried with this snippet below

onPlayerReady(api: VgAPI) { this.api = api; this.vgHls.hls.on(Hls.Events.ERROR, () => { console.log('error'); }); }

error shows Hls is undefined