视频连线

This commit is contained in:
duoaohui
2026-05-25 11:45:17 +08:00
parent 5c638b0478
commit eba6a86d73

View File

@@ -97,7 +97,8 @@
<view class="controls-row controls-row-bottom">
<view class="control-item" @click="takeSnapshot">
<view class="control-btn dark-btn text-icon-btn">
<text class="text-icon"></text>
<image v-if="!captureIconError" class="control-image" :src="captureIcon" mode="aspectFit" @error="captureIconError = true"></image>
<text v-else class="text-icon"></text>
</view>
<text class="control-label">截屏</text>
</view>
@@ -111,7 +112,8 @@
<view class="control-item" @click="flipCamera">
<view class="control-btn dark-btn text-icon-btn">
<text class="text-icon"></text>
<image v-if="!flipCameraIconError" class="control-image" :src="flipCameraIcon" mode="aspectFit" @error="flipCameraIconError = true"></image>
<text v-else class="text-icon"></text>
</view>
<text class="control-label">镜头翻转</text>
</view>
@@ -169,6 +171,10 @@ let commandPollHandle = null
let commandPolling = false
const speakerMuted = ref(false)
const cameraFacing = ref('user')
const captureIcon = '/static/capture.png'
const flipCameraIcon = '/static/camera.png'
const captureIconError = ref(false)
const flipCameraIconError = ref(false)
const digitsOf = (value) => String(value || '').replace(/\D/g, '').slice(0, 9)
const sameUser = (a, b) => String(a || '') === String(b || '')