Commit 174820b3 by 李宁

1

1 parent 3343f60a
......@@ -784,6 +784,19 @@ body {
opacity: 0.4;
}
.mpCon .butt {
border-radius: .08rem;
background: #568FFE;
height: .88rem;
display: flex;
align-items: center;
justify-content: center;
color: #FFF;
font-size: .34rem;
font-weight: 500;
margin-bottom: .32rem;
}
.snCon .stil {
color: #333;
font-size: .36rem;
......
......@@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>江苏移动</title>
<link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css" />
<link rel="stylesheet" href="css/demo.css?1111">
<link rel="stylesheet" href="css/demo.css?113311">
</head>
<body>
......@@ -374,7 +374,7 @@
<script src="js/vue.min.js"></script>
<script src="js/vant.min.js"></script>
<script src="js/demo.js?sdd333"></script>
<script src="js/demo.js?sd1d35533"></script>
</body>
</html>
\ No newline at end of file
......@@ -320,7 +320,6 @@ function getProcess() {
noShootTimeIndex = noShootTimeIndex >= 3 ? 3 : noShootTimeIndex
noShootTimeNum = noShootTimeArr[noShootTimeIndex]
noShootTimeIndex += 1
$('#noShootShowAlert').show()
noShootShowMethod()
......@@ -849,6 +848,7 @@ $('.clickButt').click(async (e) => {
}
if (key == 'bunengpai') {
noShootTimeIndex += 1
$('#noShootReasonAlert').show()
return
......@@ -1270,12 +1270,27 @@ $('#cheatClose').click(() => {
$('#warningTsAlert').hide()
})
// 提前请求媒体权限,减少弹窗等待时间
async function preRequestMediaPermission() {
try {
const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true });
// 获取权限后立即停止,释放设备给后续 SDK 使用
stream.getTracks().forEach(track => track.stop());
console.log('预请求媒体权限成功');
} catch (err) {
console.warn('预请求媒体权限失败或用户拒绝:', err);
// 这里不阻断流程,后续 SDK 初始化时会再次尝试请求
}
}
$('#videoBegin').click(async () => {
if (!AgoraRTC.checkSystemRequirements()) {
util.toast('暂不支持')
return
}
//preRequestMediaPermission()
$('#beginAlert').hide()
$('#loadingText').text('开启中,请稍候...')
$('#loading').show()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!