Skip to content

Commit

Permalink
Adjust path to dist files in samples and functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Jan 8, 2025
1 parent 15a2bf1 commit 90eeb76
Show file tree
Hide file tree
Showing 74 changed files with 115 additions and 125 deletions.
2 changes: 1 addition & 1 deletion samples/abr/abr.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Configuration of ABR Rules</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/abr/average-calculation-mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Average Throughput Calculation Mode</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/abr/custom-abr-rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Custom ABR Rules</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
4 changes: 2 additions & 2 deletions samples/abr/disable-abr.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Disable ABR</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand All @@ -16,7 +16,7 @@
height: 360px;
}
</style>

<script class="code">
function init() {
var video,
Expand Down
6 changes: 3 additions & 3 deletions samples/abr/fastswitch.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Fast bitrate switch</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -54,9 +54,9 @@
<h3>Fast bitrate switch</h3>
<p>Example showing how to aggressively replace existing segments in the buffer when switching up in quality.
When <b>fastswitch</b> is enabled and an up-switch in quality is performed, the next fragment is <b>not</b> appended at the end of the current buffer range <b>but</b> closer to the current time.

<p>Note, When ABR down-switch is detected, we appended the lower quality at the end of the buffer range to preserve the higher quality media for as long as possible.</p>

</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions samples/abr/initial-bitrate.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Initial bitrate</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand All @@ -16,7 +16,7 @@
height: 360px;
}
</style>

<script class="code">
function init() {
var video,
Expand Down
2 changes: 1 addition & 1 deletion samples/abr/max-min-bitrate.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Max/min bitrate</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/auto-play-browser-policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Autoplay browser policy example</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/cmcd-from-manifest.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>CMCD Reporting from manifest</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
4 changes: 2 additions & 2 deletions samples/advanced/cmcd.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>CMCD Reporting</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -88,7 +88,7 @@
for (var key of keys) {
extractKeyValuePairs(event.headers[key], cmcdData)
}

return cmcdData
}

Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/content-steering.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Content Steering</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
6 changes: 3 additions & 3 deletions samples/advanced/custom-capabilities-filter-mca.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<title>Custom capabilities filter example</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand All @@ -26,7 +26,7 @@
url = "https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd";

var filterCapabilities = async function (representation) {
/*
/*
* This example only illustrates how calls to async functions such as
* MediaCapabilitiesAPI can be used with dash.js' CustomCapabilitiesFilter.
* Note that dash.js already performs basic capability checks internally.
Expand Down Expand Up @@ -114,4 +114,4 @@ <h3>Custom capabilities filter example</h3>
<script src="../highlighter.js"></script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion samples/advanced/custom-capabilities-filters.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Custom capabilities filter example</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
6 changes: 3 additions & 3 deletions samples/advanced/custom-initial-track-selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Custom initial track selection example</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -45,15 +45,15 @@

video = document.querySelector('video');
player = dashjs.MediaPlayer().create();

player.setProtectionData({
'com.widevine.alpha': {
'serverURL': 'https://cwip-shaka-proxy.appspot.com/no_auth'
}
})
player.initialize(video, url, true);
player.setCustomInitialTrackSelectionFunction(getTrackWithLowestBitrate);

}
</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions samples/advanced/ext-url-query-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<title>Flexible Insertion of URL Parameters Sample</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -191,4 +191,4 @@ <h5>Manifest Content:</h5>
<script src="../highlighter.js"></script>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions samples/advanced/listening-to-SCTE-EMSG-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Listening to SCTE-EMSG Events</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -101,7 +101,7 @@ <h3>Listening to SCTE-EMSG Events</h3>
<textarea class="form-control" placeholder="Trapped on_receive events will be displayed here" id="receive"></textarea>
<label for="receive">Received Events</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-floating">
<textarea class="form-control" placeholder="Trapped on_start events will be displayed here" id="start"></textarea>
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/load-with-starttime.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Manual load with start time</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
4 changes: 2 additions & 2 deletions samples/advanced/load_with_manifest.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Load with a parsed manifest object</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -244,7 +244,7 @@

video = document.querySelector("video");
player = dashjs.MediaPlayer().create();


player.initialize(video, null, false);
player.attachSource(parsedManifest);
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/monitoring.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Monitoring stream example</title>
<script class="code" src="../../contrib/akamai/controlbar/ControlBar.js"></script>
<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/mpd-anchors.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>MPD anchors</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/preload.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Preload example</title>
<script class="code" src="../../contrib/akamai/controlbar/ControlBar.js"></script>
<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/advanced/timing-object.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Synchronization with a TimingObject</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/audio-only/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Audio only stream example</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/buffer/buffer-cleanup.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Buffer cleanup</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/buffer/buffer-target.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Buffer target</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/buffer/initial-buffer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Buffer target</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/captioning/caption_vtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>WebVTT example</title>

<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion samples/captioning/cea608.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>CEA 608/708 Embedded Captions Sample</title>
<script class="code" src="../../contrib/akamai/controlbar/ControlBar.js"></script>
<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
6 changes: 3 additions & 3 deletions samples/captioning/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class="code"
src="../../contrib/akamai/controlbar/ControlBar.js"
></script>
<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
Expand Down Expand Up @@ -61,11 +61,11 @@
subtitle.setAttribute("id", "subtitle-" + e.cueID)
subtitle.innerHTML = e.text;
document.getElementById("subtitles").appendChild(subtitle);
});
});
player.on("cueExit", function (e) {
console.log("cueExit ", e);
document.getElementById("subtitle-" + e.cueID).remove();
});
});

controlbar = new ControlBar(player);
controlbar.initialize();
Expand Down
2 changes: 1 addition & 1 deletion samples/captioning/multi-track-captions.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Multiple Language Timed Text Sample</title>
<script class="code" src="../../contrib/akamai/controlbar/ControlBar.js"></script>
<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down
4 changes: 2 additions & 2 deletions samples/captioning/ttml-ebutt-sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>Multiple Language EBU Timed Text Sample</title>
<script class="code" src="../../contrib/akamai/controlbar/ControlBar.js"></script>
<script src="../../dist/dash.all.debug.js"></script>
<script src="../../dist/modern/umd/dash.all.debug.js"></script>

<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -39,7 +39,7 @@
player = dashjs.MediaPlayer().create();
player.initialize(video, url, true);
player.attachTTMLRenderingDiv(TTMLRenderingDiv);
controlbar = new ControlBar(player);
controlbar = new ControlBar(player);
controlbar.initialize();
}

Expand Down
Loading

0 comments on commit 90eeb76

Please sign in to comment.