Events from hls.js
Videogular uses hls.js when playing m3u8. Is it possible to get the hls.js events as described on https://github.com/dailymotion/hls.js/blob/master/API.md#runtime-events?
And thank you for the videogular2!
Video on my site cause you type slow in the text fields used: Angular 4, Videogular, hls streaming: .m3u8 from wowza server. everything else works fine.
@RatkoR although we don't have @Output for HLS events you can access to the hls.js object and listen to the events.
For example:
@ViewChild(VgHLS) vgHls: VgHLS;
ngOnInit() {
this.vgHls.hls.on(Hls.Events.MANIFEST_PARSED, () => {
console.log("HLS Manifest Parsed!");
});
}
tried :
@ViewChild(VgHLS) vgHls: VgHLS;
with :
import { VgHLS } from 'videogular2/src/streaming/vg-hls/vg-hls';
but only shows this error:
Cannot find module 'videogular2/src/streaming/vg-hls/vg-hls' or its corresponding type declaration
@ViewChild(VgHLS) vgHls: VgHLS;
import { VgHLS } from 'videogular2/src/streaming/vg-hls/vg-hls';
Cannot find module 'videogular2/src/streaming/vg-hls/vg-hls' or its corresponding type declarations.