forked from cta-wave/Test-Content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.html
26 lines (24 loc) · 770 Bytes
/
play.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<script src="http://cdn.dashjs.org/latest/dash.all.min.js"></script>
<style>
video {
width: 640px;
height: 360px;
}
</style>
<body>
<div>
<video data-dashjs-player autoplay id="video1" src="https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd" controls></video>
</div>
</body>
<script>
var params = window.location.search.slice(1).split("&");
for(var p=0; p<params.length; p++) {
var nv = params[p].split("=");
var name = nv[0], value = nv[1];
document.getElementById("video1").src = value;
// What you want to do with name and value...
}
</script>
</html>