摄像头预览优化
This commit is contained in:
parent
77589e55a0
commit
21862734c8
|
@ -137,7 +137,7 @@
|
|||
|
||||
const formRef = ref();
|
||||
const player = ref();
|
||||
const resolution = ref<string>('超清');
|
||||
const resolution = ref<string>('流畅');
|
||||
const izPlaying = ref<boolean>(true);
|
||||
const izRecording = ref<boolean>(false);
|
||||
const izPhone = ref<boolean>(false);
|
||||
|
@ -219,6 +219,7 @@
|
|||
if (player.value){
|
||||
player.value.destroy().then(() => {
|
||||
}); // 销毁
|
||||
player.value = null;
|
||||
}
|
||||
const TumsPlayer = window['tums-player'].default;
|
||||
player.value = new TumsPlayer('video-container-preview', {
|
||||
|
|
Loading…
Reference in New Issue