Skip to content

IvanRF/hls.js-externs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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()});

About

Closure Compiler externs for hls.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published