File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments