| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | 
							- <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" style="width:100%;height: 100%">
 
-   </div>
 
-   <script>
 
- 	  var player=null;
 
- 	window.onload=()=>{
 
- 	let windowWidth=document.documentElement.clientWidth;
 
- 		
 
- 		//标题设置为空,如果不设置为空,会与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) 
 
- 		{
 
- 			 player = new EZUIKit.EZUIKitPlayer({
 
- 				id: 'myPlayer',
 
- 				url: url,
 
- 			 template: 'simple',
 
- 				accessToken: accessToken,
 
- 				autoplay: true,
 
- 				width: windowWidth,
 
- 				height: windowWidth * 2 / 3,
 
- 			});	
 
- 		}
 
- 	}
 
-  
 
-  // window.pagehide=function(e){  
 
- 	//    console.log('111111111111111111',e)
 
-  //   var e = window.event||e;  
 
-  //   e.returnValue=("确定离开当前页面吗?");
 
-  // }
 
-   window.addEventListener('pageshow', function (e) {
 
- 	    console.log('111111111111111111',e)
 
-       if (e.persisted) {
 
-           window.location.reload()
 
-       }
 
-  })
 
-   </script>
 
- </body>
 
 
  |