Skip to content

Commit

Permalink
Fix a bug in the low latency demos
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Jun 23, 2021
1 parent e39f8e3 commit cd27ce8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions samples/low-latency/aast_tp_calc.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
}
}
});
player.initialize(video, url, true);
applyParameters();
player.initialize(video, url, true);

return player;
}
Expand Down Expand Up @@ -105,9 +105,7 @@
<div class=" p-5 bg-light border rounded-3">
<h3><i class="bi bi-info-square"></i> Live low-latency playback</h3>
Example showing how to use dash.js to play very low latency streams using AAST based throughput
calculation<a
href="https://github.com/Dash-Industry-Forum/dash.js/wiki/Low-Latency-streaming"
target="_blank">Wiki</a>.
calculation.
<div class="row mt-3">
<div class="col-md-3">
<div class="card border-2 border-primary">
Expand Down
2 changes: 1 addition & 1 deletion samples/low-latency/l2all_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

video = document.querySelector('video');
player = dashjs.MediaPlayer().create();
player.initialize(video, url, true);
player.updateSettings({ 'streaming': { 'lowLatencyEnabled': true } });
player.updateSettings({ 'debug': { 'logLevel': dashjs.Debug.LOG_LEVEL_WARNING } });

Expand All @@ -42,6 +41,7 @@
}
});
applyParameters();
player.initialize(video, url, true);
qualitySwitchCallback = function (e) {
if (e.mediaType === 'video') {
console.warn('Quality changed', e);
Expand Down
2 changes: 1 addition & 1 deletion samples/low-latency/lolp_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

video = document.querySelector('video');
player = dashjs.MediaPlayer().create();
player.initialize(video, url, true);
player.updateSettings({
debug: {
logLevel: dashjs.Debug.LOG_LEVEL_WARNING
Expand All @@ -47,6 +46,7 @@
}
});
applyParameters();
player.initialize(video, url, true);
qualitySwitchCallback = function (e) {
if (e.mediaType === 'video') {
console.warn('Quality changed', e);
Expand Down

0 comments on commit cd27ce8

Please sign in to comment.