|
@@ -30,6 +30,7 @@
|
|
|
x5-video-orientation="portraint"
|
|
|
x5-video-player-fullscreen="true"
|
|
|
class="video"
|
|
|
+ id="videoMo"
|
|
|
ref="openvideo$"
|
|
|
preload
|
|
|
autoplay
|
|
@@ -358,20 +359,22 @@ onUnmounted(() => {
|
|
|
openvideo$.value.addEventListener("ended", handleVideoEnded, false);
|
|
|
}
|
|
|
});
|
|
|
-function WeixinPlay(){
|
|
|
- WeixinJSBridge.invoke('getNetworkType', {}, function (e) {
|
|
|
+function WeixinPlay() {
|
|
|
+ WeixinJSBridge.invoke("getNetworkType", {}, function (e) {
|
|
|
openvideo$.value.play();
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
-
|
|
|
onMounted(async () => {
|
|
|
- console.log("coverData", unref(props.coverData));
|
|
|
- if (typeof wx != "undefined") {
|
|
|
- await toConfigure();
|
|
|
- }
|
|
|
-
|
|
|
if (openvideo$.value) {
|
|
|
+ document.addEventListener("touchstart", function () {
|
|
|
+ function videoPlay() {
|
|
|
+ const video = document.getElementById("videoMo");
|
|
|
+ video && video.play();
|
|
|
+ }
|
|
|
+ videoPlay();
|
|
|
+ });
|
|
|
+
|
|
|
openvideo$.value.addEventListener("ended", handleVideoEnded, false);
|
|
|
|
|
|
openvideo$.value.addEventListener("playing", () => {
|