ssv/ssv/static/js/dist/ssv.bundle.js
//which can then get shoved into the matroska comtainer (peaceably)
which can then get shoved into the matroska comtainer (peaceably)
which can then get shoved into the matroska comtainer ( peaceably )
function makeSimpleBlock(data) {
		var flags = 0;
		if (data.keyframe) flags |= 128;
		if (data.invisible) flags |= 8;
		if (data.lacing) flags |= data.lacing << 1;
		if (data.discardable) flags |= 1;
		if (data.trackNum > 127) {
			throw "TrackNumber > 127 not supported";
		}
		var out = [data.trackNum | 0x80, data.timecode >> 8, data.timecode & 0xff, flags].map(function (e) {
			return String.fromCharCode(e);
		}).join('') + data.frame;
		return out;
	}
function makeSimpleBlock ( data ) { var flags = 0 ; if ( data . keyframe ) flags |= 128 ; if ( data . invisible ) flags |= 8 ; if ( data . lacing ) flags |= data . lacing << 1 ; if ( data . discardable ) flags |= 1 ; if ( data . trackNum > 127 ) { throw "TrackNumber > 127 not supported" ; } var out = [ data . trackNum | 0x80 , data . timecode >> 8 , data . timecode & 0xff , flags ] . map ( function ( e ) { return String . fromCharCode ( e ) ; } ) . join ( '' ) + data . frame ; return out ; }
which can then get shoved into the matroska comtainer (peaceably)
which can then get shoved into the matroska comtainer ( peaceably )