jiuyiUniapp/jiuyi2/unpackage/dist/dev/mp-weixin/TUIKit/components/TUIChat/video-play.js

30 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-12-18 15:46:27 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
require("../../adapter-vue.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "video-play",
setup(__props) {
const videoData = common_vendor.ref();
const isShow = common_vendor.ref(false);
const videoContext = common_vendor.ref();
common_vendor.onLoad((option) => {
const decodedUrl = decodeURIComponent(option == null ? void 0 : option.videoUrl);
videoData.value = decodedUrl;
isShow.value = true;
});
common_vendor.onReady(() => {
isShow.value = true;
videoContext.value = common_vendor.i.createVideoContext("videoEle");
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.unref(isShow)
}, common_vendor.unref(isShow) ? {
b: common_vendor.unref(videoData)
} : {});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e40b9248"]]);
wx.createPage(MiniProgramPage);