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.
Showing
1 changed file
with
13 additions
and
1 deletions
1 | (function(window, document) { | 1 | (function(window, document) { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | |||
4 | // the number of seconds of video in each segment | ||
3 | var segmentDuration = 9, // seconds | 5 | var segmentDuration = 9, // seconds |
4 | segmentCount = 10, | 6 | |
7 | // the number of segments in the video | ||
8 | segmentCount = 100, | ||
9 | |||
10 | // the length of the simulation | ||
5 | duration = segmentDuration * segmentCount, | 11 | duration = segmentDuration * segmentCount, |
12 | |||
13 | // the number of seconds it takes for a single bit to be | ||
14 | // transmitted from the client to the server, or vice-versa | ||
6 | propagationDelay = 0.5, | 15 | propagationDelay = 0.5, |
7 | 16 | ||
8 | runSimulation, | 17 | runSimulation, |
... | @@ -25,6 +34,9 @@ | ... | @@ -25,6 +34,9 @@ |
25 | this.tagsAvailable = function() { | 34 | this.tagsAvailable = function() { |
26 | return false; | 35 | return false; |
27 | }; | 36 | }; |
37 | this.metadataStream = { | ||
38 | on: function() {} | ||
39 | }; | ||
28 | }; | 40 | }; |
29 | 41 | ||
30 | // a dynamic number of time-bandwidth pairs may be defined to drive the simulation | 42 | // a dynamic number of time-bandwidth pairs may be defined to drive the simulation | ... | ... |
-
Please register or sign in to post a comment