Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 785 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 785 Bytes

hls.js-externs

hls.js externs for use with Closure Compiler.

Based on hls.js v0.7.11.


Example

Before minification:

if (Hls.isSupported()) {
	var video = document.getElementById("video");
	var src = video.dataset.source;
	var hls = new Hls();
	hls.loadSource(src);
	hls.attachMedia(video);
	hls.on(Hls.Events.MANIFEST_PARSED, function() {
		video.play();
	});
}

After minification:

if(Hls.isSupported()){var a=document.getElementById("video"),b=a.dataset.source,c=new Hls;c.loadSource(b);c.attachMedia(a);c.on(Hls.Events.MANIFEST_PARSED,function(){a.play()});