File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ onMounted(() => {
3636 < img src= " /favicon.webp" alt= " web camera" class = " size-6 mr-2" / >
3737 < div>
3838 < span> WebCamera< / span>
39- < span class = " ml-2 text-xs" > v0.1 .1 < / span>
39+ < span class = " ml-2 text-xs" > v0.1 .2 < / span>
4040 < / div>
4141 < / NuxtLink>
4242
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ const rtcNode = shallowRef<RTCNode>()
4444let stateJobId: any
4545let watchDogJonId: any
4646
47+ const isModernFileAPISupport = ref (false )
48+
4749const isRecordSettingModalOpen = ref (false )
4850const isRecording = ref (false )
4951const recordingStartTime = ref (0 )
@@ -336,6 +338,7 @@ onMounted(() => {
336338 if (recordMimeTypes .length > 0 ) {
337339 recordSetting .value .mimeType = recordMimeTypes [0 ]
338340 }
341+ isModernFileAPISupport .value = isModernFileAPIAvailable ()
339342})
340343
341344onUnmounted (() => {
@@ -429,7 +432,7 @@ onUnmounted(() => {
429432 >{{ $t('btn.stopRec') }}</UButton
430433 >
431434 </div >
432- <div v-show =" !isModernFileAPIAvailable() " class =" text-xs" >
435+ <div v-show =" !isModernFileAPISupport " class =" text-xs" >
433436 <span class =" text-red-500" >*</span >{{ $t('hint.recHint') }}
434437 </div >
435438 </div >
You can’t perform that action at this time.
0 commit comments