Merge pull request #17333 from tdaines/hls.js-fix-version-property

[hls.js] Changed Hls.version property to return string instead of number
This commit is contained in:
Nathan Shively-Sanders
2017-06-22 16:10:37 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ import * as Hls from 'hls.js';
if (Hls.isSupported()) {
const video = <HTMLVideoElement> document.getElementById('video');
const hls = new Hls();
const version: string = Hls.version;
hls.loadSource('http://www.streambox.fr/playlists/test_001/stream.m3u8');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, () => {
+1 -1
View File
@@ -382,7 +382,7 @@ declare namespace Hls {
/**
* returns hls.js dist version number
*/
const version: number;
const version: string;
interface Config {
/**