Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Get the switching simulator working again
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dmlap committed Jun 1, 2015
1 parent c18e3df commit 11230c3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/switcher/js/switcher.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
(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,
Expand All @@ -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
Expand Down

0 comments on commit 11230c3

Please sign in to comment.