Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
account for different duration profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
DenizUgur committed Jul 17, 2022
1 parent d54700c commit 9fa120f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ while [[ $# -gt 0 ]]; do
shift # past argument
;;
-h | --help)
echo "Usage: ./entrypoint.sh [-i | --input <input-file>] [-n | --network-profile <network-profile>] [-v | --visualization]"
echo "Usage: ./entrypoint.sh [-i | --input <input-file>] [-n | --network-profile cascade|lte|twitch] [-v | --visualization]"
exit 0
;;
-* | --*)
Expand Down
3 changes: 2 additions & 1 deletion server/gpac-dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function throttleBandwidth(response, fileData) {
current_duration /= 1000;

let networkProfile_i = parseInt(
(current_duration + presetOffset) % networkProfile.length
((current_duration + presetOffset) / networkProfile[0].duration) %
networkProfile.length
);
let targetRate =
(networkProfile[networkProfile_i].data.download * 8) / 1000;
Expand Down

0 comments on commit 9fa120f

Please sign in to comment.