From 997da6ef6ec364547248519dc2ceee2fcd1368ee Mon Sep 17 00:00:00 2001 From: jimbecker Date: Wed, 9 Jan 2019 13:19:30 -0500 Subject: [PATCH 1/4] test(test-fix): fixed failing jasmine clock test fixed failing jasmine clock test as documented by https://github.com/gruntjs/grunt-contrib-jasmine/issues/213#issue-80038755 --- src/core/vg-media/vg-media.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/vg-media/vg-media.spec.ts b/src/core/vg-media/vg-media.spec.ts index c2d7ff75..c870591a 100644 --- a/src/core/vg-media/vg-media.spec.ts +++ b/src/core/vg-media/vg-media.spec.ts @@ -39,6 +39,7 @@ describe('Videogular Media', () => { }); it('Should load a new media if a change on dom have been happened', () => { + jasmine.clock().uninstall(); jasmine.clock().install(); spyOn(elem, 'load').and.callThrough(); From 3686fdc72a2e1293c9d19073d50a2186b206c941 Mon Sep 17 00:00:00 2001 From: jimbecker Date: Wed, 9 Jan 2019 13:26:11 -0500 Subject: [PATCH 2/4] feat(hls): add support for custom headers on hls streams User can provide a map of key value pairs to add as headers when using the hls directive --- docs/modules/streaming/vg-hls/README.md | 2 ++ src/streaming/vg-hls/vg-hls.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/modules/streaming/vg-hls/README.md b/docs/modules/streaming/vg-hls/README.md index cf3d7d55..ec7d2a60 100644 --- a/docs/modules/streaming/vg-hls/README.md +++ b/docs/modules/streaming/vg-hls/README.md @@ -46,6 +46,7 @@ This module is dependant of `hls.js` library and you need to install via `npm in | Input | Description | |--- |--- | | vgHls | Url to an HLS m3u8 file. | +| vgHlsHeaders | Key/Value pairs that will be added as headers to the m3u8 file. Key is header name. Value is header value. | ## Outputs @@ -59,6 +60,7 @@ This module is dependant of `hls.js` library and you need to install via `npm in