This commit is contained in:
2024-09-09 11:19:59 +08:00
parent 9d87cc70a9
commit be841069ef
456 changed files with 5731 additions and 238053 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
<!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"
href="https://g.alicdn.com/apsara-media-box/imp-web-player/2.24.1/skins/default/aliplayer-min.css" />
<script type="text/javascript" charset="utf-8"
src="https://g.alicdn.com/apsara-media-box/imp-web-player/2.24.1/aliplayer-min.js"></script>
</head>
<body>
<div class="prism-player" id="player-con"></div>
<script>
var player = new Aliplayer({
"id": "player-con",
"source": "//player.alicdn.com/video/aliyunmedia.mp4",
"width": "100%",
"height": "500px",
"autoplay": true,
"isLive": false,
"rePlay": false,
"playsinline": true,
"preload": true,
"controlBarVisibility": "hover",
"useH5Prism": true
}, function (player) {
console.log("The player is created");
}
);
</script>
</body>

View File

@@ -0,0 +1,84 @@
<!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>
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.1.js"></script>
<script src="./vue.js"></script>
<!-- <script src="./textData.js"></script> -->
<script>
var viewWidth = window.screen.width;
if (viewWidth < 768) {
//document.write('<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1.0, maximum-scale=1, user-scalable=no, minimal-ui">');
} else {
document.write('<style>@media screen and (min-width: 768px) and (max-width: 1199px) {html {zoom: 0.8;}}</style>');
}
</script>
<link rel="stylesheet"
href="https://g.alicdn.com/apsara-media-box/imp-web-player/2.24.1/skins/default/aliplayer-min.css" />
<script type="text/javascript" charset="utf-8"
src="https://g.alicdn.com/apsara-media-box/imp-web-player/2.24.1/aliplayer-min.js"></script>
</head>
<body>
<div id="app">
<div class="prism-player" id="player-con" style="width: 100%;height: 200px;"></div>
</div>
</body>
<script type="text/javascript">
// 在引用依赖的文件后,需要在 HTML 中监听 UniAppJSBridgeReady 事件触发后,才能安全调用 uni 的 API。
document.addEventListener('UniAppJSBridgeReady', function () {
uni.getEnv(function (res) {
console.log('获取当前环境:' + JSON.stringify(res));
});
});
// HTML 接受APP发送过来的消息 (H5端)
window.addEventListener('message', e => {
console.log(e, 'HTML 接受APP发送过来的消息 (H5端)');
app.dataList = JSON.parse(e.data.data).navigation
console.log(app.dataList, '+++++++++');
}, false)
// HTML 接受APP发送过来的消息 (APP端)
function requestData(data) {
console.log(JSON.stringify(data), 'HTML 接受APP发送过来的消息 (APP端)');
app.dataList = data.navigation // 赋值
}
var app = new Vue({
el: '#app',
data: {
textTip: "提示信息",
dataList: []
},
mounted() {
},
onLoad() {
},
onShow() {
},
methods: {
}
})
</script>

View File

@@ -0,0 +1,43 @@
<!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"
href="https://g.alicdn.com/apsara-media-box/imp-web-player/2.24.1/skins/default/aliplayer-min.css" />
<script type="text/javascript" charset="utf-8"
src="https://g.alicdn.com/apsara-media-box/imp-web-player/2.24.1/aliplayer-min.js"></script>
</head>
<body>
<div class="prism-player" id="player-con"></div>
<script>
var player = new Aliplayer({
"id": "player-con",
"vid": "000d96cd433771efbff25420848c0102",
"accessKeyId": "STS.NUBpxvsNu9pAiPy5KmkHzSD6p",
"securityToken": "CAISwgJ1q6Ft5B2yfSjIr5b3O8LCnpFUjrKqa3bI0Us4Z8dWvIGdkjz2IHhMdHFuB+4YsP41lWtS7f8alqJvRoRZXkHfdsp36MzXa+JLh9CT1fau5Jko1beDewHKeT+ZsebWZ+LmNqS/Ht6md1HDkAJq3LL+bk/Mdle5MJqP+/EFA8oQUlv6F00kYu1bPQx/ssQXGGLMPPK2SH7Qj3HXEVBjt3gX6wo9y9zmnJXAtUaG1Qalmr5M9tyuGPX+MZkwZqUYesyuwel7epDG1CNt8BVQ/M909vccoWef4I/DXQcLuUTdabGNqscAMgh1fK8+Fr7vNBB7d2X80Aa6tfMUq34lVYk9O0xUVNm99eAj4Zu2LCA/bJjxDWbj2B5zWvYOS/vdiIPa5dqnghPI55Kh8N31m9ywwdXEh7uyiWz4I7oS7b1oufIdGoABHRx0EH4FFIVsNTUYPhheAvHhHgRd/DIUWBYveJOyT+ZysfdF8G897ch5sQpB8NGYlc9edCTT974olS0vJCSBnTMqGUIbzUmZZEjtDCW2Rh5s/7bmLWvx3CR5JYpEcOwRedjzykK+t2/w1oZ4JowNftNIPlDnqk+I17tivUbzAosgAA==",
"accessKeySecret": "2KBMr5LwkyiW5vr29reaC7K47jKYV8TXEPyvkG2sx6ti",
"region": "cn-shanghai",
"format": "m3u8",
"mediaType": "video",
"encryptType": 1,
"width": "100%",
"height": "500px",
"autoplay": true,
"isLive": false,
"rePlay": false,
"playsinline": true,
"preload": true,
"controlBarVisibility": "hover",
"useH5Prism": true
}, function (player) {
console.log("The player is created");
}
);
</script>
</body>

View File

@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>本地网页</title>
<style type="text/css">
.btn {
display: block;
margin: 20px auto;
padding: 5px;
background-color: #007aff;
border: 0;
color: #ffffff;
height: 40px;
width: 200px;
}
.btn-red {
background-color: #dd524d;
}
.btn-yellow {
background-color: #f0ad4e;
}
.desc {
padding: 10px;
color: #999999;
}
</style>
</head>
<body>
<p class="desc">web-view 组件加载本地 html 示例,仅在 App 环境下生效。点击下列按钮,跳转至其它页面。</p>
<div class="btn-list">
<button class="btn" type="button" data-action="navigateTo">navigateTo</button>
<button class="btn" type="button" data-action="redirectTo">redirectTo</button>
<button class="btn" type="button" data-action="navigateBack">navigateBack</button>
<button class="btn" type="button" data-action="reLaunch">reLaunch</button>
<button class="btn" type="button" data-action="switchTab">switchTab</button>
</div>
<p class="desc" id="lizhao">网页向应用发送消息。注意:小程序端应用会在此页面后退时接收到消息。</p>
<div class="btn-list">
<button class="btn btn-red" type="button" id="postMessage">postMessage</button>
</div>
<!-- uni 的 SDK -->
<script type="text/javascript" src="https://unpkg.com/@dcloudio/uni-webview-js@0.0.1/index.js"></script>
<script type="text/javascript">
window.handleMessage = function (data) {
alert('传来的参数' + data)
}
document.addEventListener('UniAppJSBridgeReady', function () {
const data = plus.webview.getWebviewById("batch_view").data;//上传时最后一个参数
console.log('这是app传参数进来的', data.token, '22222222')
document.querySelector('.btn-list').addEventListener('click', function (evt) {
var target = evt.target;
if (target.tagName === 'BUTTON') {
var action = target.getAttribute('data-action');
switch (action) {
case 'switchTab':
uni.switchTab({
url: '/pages/tabBar/API/API'
});
break;
case 'reLaunch':
uni.reLaunch({
url: '/pages/tabBar/API/API'
});
break;
case 'navigateBack':
uni.navigateBack({
delta: 1
});
break;
default:
uni[action]({
url: '/pages/component/button/button'
});
break;
}
}
});
document.querySelector("#postMessage").addEventListener('click', function () {
uni.postMessage({
data: {
action: 'message888888'
}
});
})
});
</script>
</body>
</html>

View File

@@ -0,0 +1,45 @@
var app = new Vue({
el: '#app',
data: {
textTip:"提示信息",
dataList:[]
},
mounted() {
},
onLoad() {
},
onShow() {
},
methods: {
}
})
// var player = new Aliplayer({
// "id": "player-con",
// "vid": "d0c8e6d23e5f71ef81714531858c0102",
// "accessKeyId": "STS.NTuhvLy2bynHUatJbci5eaPz5",
// "securityToken": "CAISwgJ1q6Ft5B2yfSjIr5fAI8z4lO1DzqyjV0fFrmI2ZbpJjpXR1zz2IHhMdHFuB+4YsP41lWtS7f8alqJvRoRZXkHfdsp36MzsHLA8gNCT1fau5Jko1beDewHKeT+ZsebWZ+LmNqS/Ht6md1HDkAJq3LL+bk/Mdle5MJqP+/EFA8oQUlv6F00kYu1bPQx/ssQXGGLMPPK2SH7Qj3HXEVBjt3gX6wo9y9zmnJXAtUaG1Qalmr5M9tyuGPX+MZkwZqUYesyuwel7epDG1CNt8BVQ/M909vccoWef4I/DXQcLuUTdabGNqscAMgh1fK8+Fr7vNBB7d2X80Aa6tfMUq34lVYk9O0xUlFQqV0TCU6ovuoKM/1JX7+gpfvTOV/+7+kpvCikgLwgpMPFKCRxrQicnUVK3ROLZvj6DDGitIx3sErloufIdGoABg14fbHq5iPyBiyCCJhvTdAK2iOmHt2WjJYqK9yaGfsUgWPsDZTaWWZ2mTfm+sSBACuomuaM1vkG52exc21DDZ1cQrd+MBfEluJHOKWyGf0z7+ywUiSnctOl+NZxVWc13zbRbES5prVhyY37FkIRdRE3qPZaoTgyjzNf5xV3TEmIgAA==",
// "accessKeySecret": "63Rw3pp2TCP2TSomv3KAxpVvWRaCCGcLvBRiwPef1Zsb",
// "region": "cn-shanghai",
// "format": "mp4",
// "mediaType": "video",
// "width": "100%",
// "height": "500px",
// "autoplay": true,
// "isLive": false,
// "rePlay": false,
// "playsinline": true,
// "preload": true,
// "controlBarVisibility": "hover",
// "useH5Prism": true
// }, function (player) {
// console.log("The player is created");
// }
// );

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 990 KiB

After

Width:  |  Height:  |  Size: 894 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1717742156669" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21763" xmlns:xlink="http://www.w3.org/1999/xlink" width="256" height="256"><path d="M148.72381 719.238095l-97.52381 156.038095c-4.87619 9.752381 0 21.942857 12.190476 21.942858l131.657143 7.314285c4.87619 0 7.314286 2.438095 9.752381 4.876191l80.457143 107.27619c7.314286 7.314286 19.504762 7.314286 24.380952 0l92.647619-153.6c4.87619-7.314286 2.438095-14.628571-4.87619-19.504762l-229.180953-129.219047c-7.314286-2.438095-14.628571 0-19.504761 4.87619zM875.27619 716.8l97.52381 156.038095c4.87619 9.752381 0 21.942857-12.190476 21.942857L828.952381 902.095238c-4.87619 0-7.314286 2.438095-9.752381 4.876191l-80.457143 107.27619c-7.314286 7.314286-19.504762 7.314286-24.380952 0l-92.647619-153.6c-4.87619-7.314286-2.438095-14.628571 4.87619-19.504762l229.180953-129.219047c7.314286-4.87619 14.628571-2.438095 19.504761 4.87619zM855.771429 185.295238L546.133333 9.752381c-21.942857-12.190476-51.2-12.190476-73.142857 0L165.790476 182.857143C143.847619 195.047619 129.219048 219.428571 129.219048 243.809524v348.647619c0 24.380952 14.628571 48.761905 36.571428 60.952381L475.428571 828.952381c21.942857 12.190476 51.2 12.190476 73.142858 0l307.2-170.666667c21.942857-12.190476 36.571429-36.571429 36.571428-60.952381V248.685714c0-26.819048-14.628571-51.2-36.571428-63.390476z m-146.285715 148.72381l-180.419047 260.87619c-4.87619 7.314286-14.628571 12.190476-24.380953 12.190476s-19.504762-4.87619-24.380952-12.190476l-173.104762-260.87619c-9.752381-12.190476-4.87619-31.695238 7.314286-39.009524 12.190476-7.314286 31.695238-4.87619 39.009524 7.314286l148.723809 224.304761 156.038095-226.742857c9.752381-12.190476 26.819048-17.066667 39.009524-7.314285 19.504762 12.190476 21.942857 29.257143 12.190476 41.447619z" fill="#F5B53A" p-id="21764"></path></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB