videogular2 icon indicating copy to clipboard operation
videogular2 copied to clipboard

Events from hls.js

Open RatkoR opened this issue 9 years ago • 4 comments

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!

RatkoR avatar Jan 04 '17 15:01 RatkoR

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.

metalraf avatar Jun 22 '17 10:06 metalraf

@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!");
        });
    }

Elecash avatar Apr 19 '18 10:04 Elecash

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

ricardo-bazan avatar Nov 25 '20 04:11 ricardo-bazan

@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.

vc-jaydeep avatar Jul 29 '21 07:07 vc-jaydeep