Skip to content

Commit 8198ffb

Browse files
committed
dashjs.org/latest/ is no longer available with the publication of dashjs v5
1 parent 3215ac5 commit 8198ffb

2 files changed

Lines changed: 29 additions & 30 deletions

File tree

frontend/hbbtv/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<script type="text/javascript" src="launcher/videoplayer_basic.js"></script>
3939
<script type="text/javascript" src="launcher/videoplayer_html5.js"></script>
4040
<script type="text/javascript" src="launcher/videoplayer_mse-eme.js"></script>
41-
<script type="text/javascript" src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
41+
<script type="text/javascript" src="https://cdn.dashjs.org/v4.7.4/dash.all.min.js"></script>
4242
<script type="text/javascript" src="dialog.js"></script>
4343
<script type="text/javascript" src="main.js"></script>
4444
</head>
Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,39 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8"/>
3+
<head>
4+
<meta charset="utf-8" />
55
<title>Widevine DRM</title>
66

7-
<script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
7+
<script src="https://cdn.dashjs.org/v4.7.4/dash.all.min.js"></script>
88
<script>
9-
function init() {
10-
const protData = {
11-
"com.widevine.alpha": {
12-
"serverURL": "https://widevine-proxy.appspot.com/proxy"
13-
}
14-
};
15-
var url = "https://pl8q5ug7b6.execute-api.eu-central-1.amazonaws.com/1.mpd";
9+
function init() {
10+
const protData = {
11+
"com.widevine.alpha": {
12+
serverURL: "https://widevine-proxy.appspot.com/proxy",
13+
},
14+
};
15+
var url = "https://pl8q5ug7b6.execute-api.eu-central-1.amazonaws.com/1.mpd";
1616

17-
var video = document.getElementById("video");
18-
var player = dashjs.MediaPlayer().create();
19-
player.initialize(video, url, true);
20-
player.setProtectionData(protData);
21-
}
17+
var video = document.getElementById("video");
18+
var player = dashjs.MediaPlayer().create();
19+
player.initialize(video, url, true);
20+
player.setProtectionData(protData);
21+
}
2222
</script>
2323

2424
<style>
25-
video {
26-
position: absolute;
27-
top: 0px;
28-
left: 0px;
29-
width: 100%;
30-
height: 100%;
31-
}
25+
video {
26+
position: absolute;
27+
top: 0px;
28+
left: 0px;
29+
width: 100%;
30+
height: 100%;
31+
}
3232
</style>
33-
</head>
34-
<body onload="init();">
35-
<div>
36-
<video id="video" controls="true">
37-
</video>
38-
</div>
39-
</body>
33+
</head>
34+
<body onload="init();">
35+
<div>
36+
<video id="video" controls="true"> </video>
37+
</div>
38+
</body>
4039
</html>

0 commit comments

Comments
 (0)