视频连线
This commit is contained in:
@@ -97,7 +97,8 @@
|
|||||||
<view class="controls-row controls-row-bottom">
|
<view class="controls-row controls-row-bottom">
|
||||||
<view class="control-item" @click="takeSnapshot">
|
<view class="control-item" @click="takeSnapshot">
|
||||||
<view class="control-btn dark-btn text-icon-btn">
|
<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>
|
</view>
|
||||||
<text class="control-label">截屏</text>
|
<text class="control-label">截屏</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -111,7 +112,8 @@
|
|||||||
|
|
||||||
<view class="control-item" @click="flipCamera">
|
<view class="control-item" @click="flipCamera">
|
||||||
<view class="control-btn dark-btn text-icon-btn">
|
<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>
|
</view>
|
||||||
<text class="control-label">镜头翻转</text>
|
<text class="control-label">镜头翻转</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -169,6 +171,10 @@ let commandPollHandle = null
|
|||||||
let commandPolling = false
|
let commandPolling = false
|
||||||
const speakerMuted = ref(false)
|
const speakerMuted = ref(false)
|
||||||
const cameraFacing = ref('user')
|
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 digitsOf = (value) => String(value || '').replace(/\D/g, '').slice(0, 9)
|
||||||
const sameUser = (a, b) => String(a || '') === String(b || '')
|
const sameUser = (a, b) => String(a || '') === String(b || '')
|
||||||
|
|||||||
Reference in New Issue
Block a user