还是尽量不要用EXUI自带的浏览器组件吧,这个播放不了视频,而且全屏之后的播放器无法控制组件
如果用其他浏览器,比如CEF3的话,创建在EXUI的窗口上会把标题栏挤掉,而且我也不知道能不能实时调整CEF3浏览器在EXUI的窗口的尺寸位置,我看一般都是全覆盖窗口
最好是能只在一个窗口上创建浏览器,而且能调整浏览器的大小,我可能需要放按钮啥的组件,所以浏览器不能全覆盖[e=0]
HTML源码
[HTML] 纯文本查看 复制代码 <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge" >
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
<title>Aliplayer Online Settings</title>
<link rel="stylesheet" />
<script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/apsara-media-box/imp-web-player/2.17.1/aliplayer-min.js"></script>
</head>
<body>
<div class="prism-player" id="player-con"></div>
<script>
var player = new Aliplayer({
"id": "player-con",
"source": "https://media-oss.plasticmemory.net/m3u8/1694838679538.m3u8",
"width": "100%",
"height": "500px",
"autoplay": true,
"isLive": false,
"rePlay": false,
"playsinline": true,
"preload": true,
"language": "zh-cn",
"controlBarVisibility": "hover",
"useH5Prism": true
}, function (player) {
console.log("The player is created");
}
);
</script>
</body>
希望能大佬能帮忙解决一下
|