|
@@ -0,0 +1,34 @@
|
|
|
+<script type="text/javascript" src="ezuikit.js"></script>
|
|
|
+<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
|
|
+<title></title>
|
|
|
+<body>
|
|
|
+ <div id="myPlayer">
|
|
|
+ </div>
|
|
|
+ <script>
|
|
|
+ window.onload=()=>{
|
|
|
+
|
|
|
+ //标题设置为空,如果不设置为空,会与uni-app自带标题冲突
|
|
|
+ document.title='\u200E';
|
|
|
+ // 截取url与accessToken
|
|
|
+ // console.log('111111111111111111',window.location.href)
|
|
|
+
|
|
|
+ let url=window.location.href.split('?')[1].split('&')[0].split('=')[1]//url
|
|
|
+ let accessToken=window.location.href.split('?')[1].split('&')[1].split('=')[1]//token
|
|
|
+ init(url,accessToken);
|
|
|
+
|
|
|
+ function init(url,accessToken)
|
|
|
+ {
|
|
|
+ var player = new EZUIKit.EZUIKitPlayer({
|
|
|
+ id: 'myPlayer',
|
|
|
+ url: url,
|
|
|
+ template: 'standard',
|
|
|
+ accessToken: accessToken,
|
|
|
+ autoplay: true,
|
|
|
+ width: 750,
|
|
|
+ height: 400,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ </script>
|
|
|
+</body>
|