browser.js
function getMore() {
		var ajax = new XMLHttpRequest();
		ajax.addEventListener('load', function () {
			var originals =
				this.responseText
				.split(/\r?\n/)
				.filter(RegExp.prototype.test.bind(/\.ts$/))
				.map(resolveURL.bind(null, manifest));

			originals = originals.slice(originals.lastIndexOf(lastOriginal) + 1);
			lastOriginal = originals[originals.length - 1];

			worker.postMessage(originals.map(function (url, index) {
				return {url: url, index: sentVideos + index};
			}));

			sentVideos += originals.length;

			console.log('asked for ' + originals.length + ' more videos');
		});
		ajax.open('GET', manifest, true);
		ajax.send();
	}
function getMore() {
		var ajax = new XMLHttpRequest();
		ajax.addEventListener('load', function () {
			var originals =
				this.responseText
				.split(/\r?\n/)
				.filter(RegExp.prototype.test.bind(/\.ts$/))
				.map(resolveURL.bind(null, manifest));

			originals = originals.slice(originals.lastIndexOf(lastOriginal) + 1);
			lastOriginal = originals[originals.length - 1];

			worker.postMessage(originals.map(function (url, index) {
				return {url: url, index: sentVideos + index};
			}));

			sentVideos += originals.length;

			console.log('asked for ' + originals.length + ' more videos');
		});
		ajax.open('GET', manifest, true);
		ajax.send();
	}
function getMore ( ) { var ajax = new XMLHttpRequest ( ) ; ajax . addEventListener ( 'load' , function ( ) { var originals = this . responseText . split ( / \r?\n / ) . filter ( RegExp . prototype . test . bind ( / \.ts$ / ) ) . map ( resolveURL . bind ( null , manifest ) ) ; originals = originals . slice ( originals . lastIndexOf ( lastOriginal ) + 1 ) ; lastOriginal = originals [ originals . length - 1 ] ; worker . postMessage ( originals . map ( function ( url , index ) { return { url : url , index : sentVideos + index } ; } ) ) ; sentVideos += originals . length ; console . log ( 'asked for ' + originals . length + ' more videos' ) ; } ) ; ajax . open ( 'GET' , manifest , true ) ; ajax . send ( ) ; }
loading more videos from manifest
loading more videos from manifest