Unable to catch network error using default listner in videogular2
vinodkumar898 opened this issue · 0 comments
vinodkumar898 commented
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