new definition file for hls.js (#16028)

* added hls.js definition

* changed to new tslint format

* fixing lint errors

* changed definition structure based on PR comment
This commit is contained in:
John Gainfort
2017-04-20 10:54:50 -07:00
committed by Andy
parent fa2480ba61
commit 58e2df31f6
4 changed files with 1288 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import * as Hls from 'hls.js';
if (Hls.isSupported) {
const video = <HTMLVideoElement> document.getElementById('video');
const hls = new Hls();
hls.loadSource('http://www.streambox.fr/playlists/test_001/stream.m3u8');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, () => {
video.play();
});
}
+1253
View File
File diff suppressed because it is too large Load Diff
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"hls.js-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }