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

Commit

Permalink
Merge pull request #293 from dmlap/switching-sim-updates
Browse files Browse the repository at this point in the history
Get the switching simulator working again
  • Loading branch information
dmlap committed Jun 5, 2015
2 parents c18e3df + 11230c3 commit c4a8ac2
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 c4a8ac2

Please sign in to comment.