FenXiNspUniapp/packDetail1/static/video.html

32 lines
825 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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
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: 960,
height: 650,
});
}
}
</script>
</body>