11230c3e by David LaPalomento

Get the switching simulator working again

Mock out metadata stream support. Comment javascript simulation parameters. Simulation results currently always buffer the first segment because of the bandwidth scaling factor applied to deal with real-world discrepancies between m3u8 download times and steady-state downloads. Behavior after the first segment still looks good.
1 parent c18e3df7
(function(window, document) {
'use strict';
// the number of seconds of video in each segment
var segmentDuration = 9, // seconds
segmentCount = 10,
// the number of segments in the video
segmentCount = 100,
// the length of the simulation
duration = segmentDuration * segmentCount,
// the number of seconds it takes for a single bit to be
// transmitted from the client to the server, or vice-versa
propagationDelay = 0.5,
runSimulation,
......@@ -25,6 +34,9 @@
this.tagsAvailable = function() {
return false;
};
this.metadataStream = {
on: function() {}
};
};
// a dynamic number of time-bandwidth pairs may be defined to drive the simulation
......