videogular/videogular2

Unable to catch network error using default listner in videogular2

vinodkumar898 opened this issue · 0 comments

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