|
@@ -35,6 +35,7 @@
|
|
|
|
|
|
let zhuapaiFun = null;
|
|
let zhuapaiFun = null;
|
|
let stopCamera = null;
|
|
let stopCamera = null;
|
|
|
|
+ let playVideoFun = null;
|
|
|
|
|
|
const DropRef = ref(null);
|
|
const DropRef = ref(null);
|
|
const DropContainerRef = ref(null);
|
|
const DropContainerRef = ref(null);
|
|
@@ -62,7 +63,8 @@
|
|
}
|
|
}
|
|
|
|
|
|
function showVideoBtn() {
|
|
function showVideoBtn() {
|
|
- showVideo.value = true
|
|
|
|
|
|
+ showVideo.value = true;
|
|
|
|
+ playVideoFun && playVideoFun();
|
|
}
|
|
}
|
|
|
|
|
|
function touchmove(event) {
|
|
function touchmove(event) {
|
|
@@ -128,7 +130,8 @@
|
|
const {
|
|
const {
|
|
startH5Camera,
|
|
startH5Camera,
|
|
handlePaiZhao,
|
|
handlePaiZhao,
|
|
- stopH5Camera
|
|
|
|
|
|
+ stopH5Camera,
|
|
|
|
+ playVideo
|
|
} = useH5Camera({
|
|
} = useH5Camera({
|
|
elVideoId: '#videoZhaPai',
|
|
elVideoId: '#videoZhaPai',
|
|
elCanvasId: '#canvasZhuaPai',
|
|
elCanvasId: '#canvasZhuaPai',
|
|
@@ -140,6 +143,7 @@
|
|
startH5Camera();
|
|
startH5Camera();
|
|
zhuapaiFun = handlePaiZhao;
|
|
zhuapaiFun = handlePaiZhao;
|
|
stopCamera = stopH5Camera;
|
|
stopCamera = stopH5Camera;
|
|
|
|
+ playVideoFun = playVideo;
|
|
// #endif
|
|
// #endif
|
|
|
|
|
|
}
|
|
}
|