@yimou6/common-ui 1.12.9 → 1.12.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/cdn/index.cdn.js +4 -4
  2. package/cdn/index.cdn.js.map +1 -1
  3. package/cdn/index.cdn.mjs +7 -7
  4. package/cdn/index.cdn.mjs.map +1 -1
  5. package/cdn/index.css +1 -1
  6. package/es/components/tzj-player/index.d.ts +18 -216
  7. package/es/components/tzj-player/src/ctyun-player.vue.d.ts +2 -24
  8. package/es/components/tzj-player/src/easyPlayer.vue.d.ts +1 -12
  9. package/es/components/tzj-player/src/easyPlayer.vue2.mjs +4 -25
  10. package/es/components/tzj-player/src/easyPlayer.vue2.mjs.map +1 -1
  11. package/es/components/tzj-player/src/errorPage.vue.d.ts +1 -12
  12. package/es/components/tzj-player/src/errorPage.vue2.mjs +4 -25
  13. package/es/components/tzj-player/src/errorPage.vue2.mjs.map +1 -1
  14. package/es/components/tzj-player/src/tzj-player.vue.d.ts +18 -216
  15. package/es/components/tzj-player/src/tzj-player.vue2.mjs +25 -4
  16. package/es/components/tzj-player/src/tzj-player.vue2.mjs.map +1 -1
  17. package/es/components/tzj-player/src/ysPlayer.vue.d.ts +1 -12
  18. package/es/components/tzj-player/src/ysPlayer.vue2.mjs +5 -29
  19. package/es/components/tzj-player/src/ysPlayer.vue2.mjs.map +1 -1
  20. package/es/components/tzj-player/src/yunzhiyanPlayer.vue.d.ts +2 -24
  21. package/lib/components/tzj-player/index.d.ts +18 -216
  22. package/lib/components/tzj-player/src/ctyun-player.vue.d.ts +2 -24
  23. package/lib/components/tzj-player/src/easyPlayer.vue.d.ts +1 -12
  24. package/lib/components/tzj-player/src/easyPlayer.vue2.js +3 -24
  25. package/lib/components/tzj-player/src/easyPlayer.vue2.js.map +1 -1
  26. package/lib/components/tzj-player/src/errorPage.vue.d.ts +1 -12
  27. package/lib/components/tzj-player/src/errorPage.vue2.js +3 -24
  28. package/lib/components/tzj-player/src/errorPage.vue2.js.map +1 -1
  29. package/lib/components/tzj-player/src/tzj-player.vue.d.ts +18 -216
  30. package/lib/components/tzj-player/src/tzj-player.vue2.js +24 -3
  31. package/lib/components/tzj-player/src/tzj-player.vue2.js.map +1 -1
  32. package/lib/components/tzj-player/src/ysPlayer.vue.d.ts +1 -12
  33. package/lib/components/tzj-player/src/ysPlayer.vue2.js +4 -28
  34. package/lib/components/tzj-player/src/ysPlayer.vue2.js.map +1 -1
  35. package/lib/components/tzj-player/src/yunzhiyanPlayer.vue.d.ts +2 -24
  36. package/package.json +1 -1
  37. package/theme-default/i-tzj-player.css +1 -1
  38. package/theme-default/index.css +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ysPlayer.vue2.mjs","sources":["../../../../../../../packages/components/tzj-player/src/ysPlayer.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useElementSize } from \"@vueuse/core\";\nimport {\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from \"vue\";\nimport ErrorPage from \"./errorPage.vue\";\nimport { uuid } from \"./tzj-player\";\n// 萤石云播放器\ndefineOptions({\n name: \"YsPlayer\",\n});\n\n// 传值方式\n// 1、传url、accessToken\n// 2、传deviceSerial、channel、accessToken\nconst props = defineProps<{\n // 播放地址\n // 高清:ezopen://open.ys7.com/${设备序列号}/${通道号}.hd.live\n // 流畅:ezopen://open.ys7.com/${设备序列号}/${通道号}.live\n url?: string;\n // 设备序列号\n deviceSerial?: string;\n // 通道号\n channel?: number;\n // 清晰度,默认为空,也表示高清\n // hd:高清;sd:流畅\n quality?: \"hd\" | \"sd\" | \"\";\n accessToken: string;\n // 播放器模板ID\n playerTemplate?: string;\n // 设备名称\n areaName?: string;\n}>();\n\n// 播放器模板ID\n// 可在萤石云控制台查看、修改、获取\n// 位置:云直播-轻应用-特致珈默认模板\nconst PLAYER_TEMPLATE = \"5f295a9341a74d439b5d69374c90d501\";\nconst id = uuid();\nlet playerInstance: any = null;\nlet errorMsg = \"\";\nconst ysRef = shallowRef();\nconst containerRef = shallowRef();\nconst { width, height } = useElementSize(ysRef);\nconst { width: childWidth, height: childHeight } = useElementSize(containerRef);\nlet ratio = 16 / 9;\nlet isCurrentFullscreen = false;\n\n// 添加重连次数控制,防止无限重连\nconst reconnectAttempts = ref(0);\nconst maxReconnectAttempts = 3;\n\n// 添加防抖处理URL变化\nconst debouncedPlay = debounce(() => {\n play();\n}, 500);\n\n// 监听URL变化,使用防抖处理\nwatch(\n () => props.url,\n () => {\n debouncedPlay();\n },\n);\n\nonMounted(() => play());\n\nonBeforeUnmount(() => destroy());\n\ndefineExpose({ play, destroy, resize });\n\n// 防抖函数\nfunction debounce(func: Function, wait: number) {\n let timeout: ReturnType<typeof setTimeout> | null = null;\n return function (this: any, ...args: any[]) {\n if (timeout) clearTimeout(timeout);\n timeout = setTimeout(() => func.apply(this, args), wait);\n };\n}\n\n// 加上防抖的 resize 函数\nconst debouncedResize = debounce(resize, 300);\n\nwatch(\n () => [width.value, height.value, ratio],\n () => {\n if (!isCurrentFullscreen) {\n debouncedResize();\n }\n },\n);\n\nasync function play(options?: Record<string, any>) {\n if (!props.accessToken) {\n errorMsg = `params 'accessToken' is not found`;\n } else {\n const url = formatterUrl();\n if (url) {\n createPlayerDom();\n await nextTick();\n await createPlayer(options);\n }\n }\n}\n\nfunction destroy() {\n if (playerInstance) {\n try {\n // 确保播放器实例完全销毁\n playerInstance.destroy?.();\n } catch (e) {\n console.warn(\"播放器销毁过程中出现错误:\", e);\n }\n playerInstance = null;\n removePlayerDom();\n }\n}\n\nfunction resize() {\n const containerWidth = childWidth.value;\n const containerHeight = childHeight.value;\n // 如果容器尺寸无效,直接返回\n if (containerWidth <= 0 || containerHeight <= 0) return;\n\n // 计算播放器尺寸,保持宽高比\n\n const aspectRatio = ratio;\n\n let playerWidth = containerWidth;\n let playerHeight = playerWidth / aspectRatio;\n\n // 如果计算出的高度超过容器高度,以高度为准重新计算\n if (playerHeight > containerHeight) {\n playerHeight = containerHeight;\n playerWidth = playerHeight * aspectRatio;\n }\n\n // 尝试使用播放器实例的resize方法\n if (playerInstance?.resize) {\n playerInstance.resize(playerWidth, playerHeight);\n return;\n }\n\n // 如果没有播放器实例,直接操作DOM\n if (typeof document !== \"undefined\") {\n const playerElement = document.getElementById(id);\n if (playerElement) {\n playerElement.style.width = `${playerWidth}px`;\n playerElement.style.height = `${playerHeight}px`;\n }\n }\n}\n\n/**\n * 创建萤石云播放器实例,播放萤石云直播流\n */\nasync function createPlayer(options?: Record<string, any>) {\n try {\n // 动态导入 EZUIKit,避免 SSR 环境下的 window 访问错误\n const EZUIKit = await import(\"ezuikit-js\");\n\n playerInstance = new EZUIKit.default.EZUIKitPlayer({\n id,\n url: formatterUrl(),\n accessToken: props.accessToken,\n template: props.playerTemplate || PLAYER_TEMPLATE,\n width: width.value,\n height: height.value,\n audio: 1,\n // @ts-ignore\n loggerOptions: {\n name: \"YSPLAYER\",\n level: \"ERROR\",\n showTime: true,\n },\n staticPath: \"/plugins/ezuikit/ezuikit_static\",\n ...options,\n });\n\n // 监听播放错误事件,限制重连次数\n playerInstance.on(\"error\", (err: any) => {\n console.error(\"萤石云播放器错误:\", err);\n // 控制重连次数\n if (reconnectAttempts.value < maxReconnectAttempts) {\n reconnectAttempts.value++;\n setTimeout(() => {\n destroy();\n play();\n }, 3000 * reconnectAttempts.value);\n }\n });\n } catch (error) {\n console.error(\"Failed to load EZUIKit:\", error);\n errorMsg = \"播放器加载失败\";\n return;\n }\n\n playerInstance.eventEmitter.on(\"fullscreen\", () => {\n isCurrentFullscreen = true;\n });\n playerInstance.eventEmitter.on(\"exitFullscreen\", () => {\n isCurrentFullscreen = false;\n });\n playerInstance.eventEmitter.on(\"videoInfo\", (args: any) => {\n const { width: w, height: h } = args;\n // 计算播放器宽高比\n if (w && h) {\n ratio = w / h;\n }\n debouncedResize();\n });\n}\n\nfunction formatterUrl(): string {\n if (props.url) {\n return props.url;\n } else {\n if (props.deviceSerial && props.channel) {\n const quality =\n props.quality === \"\" || props.quality === \"hd\" ? \"hd.\" : \"\";\n return `ezopen://open.ys7.com/${props.deviceSerial}/${props.channel}.${quality}live`;\n } else {\n errorMsg = `params 'deviceSerial' or 'channel' is not found`;\n return \"\";\n }\n }\n}\n\n// 移除播放器DOM\nfunction removePlayerDom() {\n if (typeof document !== \"undefined\") {\n const dom = document.getElementById(id);\n dom && dom.remove();\n }\n}\n// 创建播放器DOM\nfunction createPlayerDom() {\n if (!errorMsg) {\n removePlayerDom();\n if (typeof document !== \"undefined\") {\n const dom = document.createElement(\"div\");\n dom.id = id;\n dom.style.width = \"100%\";\n dom.style.height = \"100%\";\n containerRef.value?.appendChild(dom);\n }\n }\n}\n</script>\n\n<template>\n <div ref=\"ysRef\" class=\"i-tzj-ysplayer\">\n <!-- 播放器顶部显示区域(设备)名称 -->\n <div v-if=\"areaName\" class=\"i-tzj-easyPlayer__top\">\n <i class=\"iconfont icon-shexiangtou4\" />\n <span>{{ areaName }}</span>\n </div>\n <div\n ref=\"containerRef\"\n class=\"i-tzj-ysplayer\"\n style=\"width: 100%\"\n :style=\"{\n height: areaName ? 'calc(100% - 32px)' : '100%',\n position: 'relative',\n }\"\n />\n <ErrorPage\n v-if=\"errorMsg\"\n :video-name=\"areaName || deviceSerial\"\n :message=\"errorMsg\"\n />\n </div>\n</template>\n"],"names":["_createElementBlock","_createCommentVNode","areaName","_openBlock","_createElementVNode","_unref","_createBlock","ErrorPage","deviceSerial"],"mappings":";;;;;;;;;;;;AA0CA,MAAM,eAAkB,GAAA,kCAAA;AAaxB,MAAM,oBAAuB,GAAA,CAAA;;;;;;;;;;;;;;;;AAnC7B,IAAA,MAAM,KAAQ,GAAA,OAAA;AAuBd,IAAA,MAAM,KAAK,IAAK,EAAA;AAChB,IAAA,IAAI,cAAsB,GAAA,IAAA;AAC1B,IAAA,IAAI,QAAW,GAAA,EAAA;AACf,IAAA,MAAM,QAAQ,UAAW,EAAA;AACzB,IAAA,MAAM,eAAe,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AAAA,mCAFJ,GAAAI,kBAAA;AAAA,cAAwC,GAAA;AAAA,cAAA,EAArC,OAAM,4BAA4B,EAAA;AAAA,cAAA,IAAA;AAAA,cAAA,CAAA;AAAA;AAAA,aAAA,CAAA;AAAA,YACrCA,kBAAA;AAAA,cAA2B,MAAA;AAAA;8BAAlBF,KAAQ,QAAA,CAAA;AAAA,cAAA;AAAA;AAAA;AAAA;UAEnBE,kBAAA;AAAA,YAQE,KAAA;AAAA,YAAA;AAAA,qBAPI,EAAA,cAAA;AAAA,cAAJ,GAAI,EAAA,YAAA;AAAA,cACJ,KAAM,EAAA,gBAAA;AAAA,cACN,uBAAA,EAAmB,OAAA,EAAA,QAAA,EAAA;AAAA,wBACOF,IAAQ,CAAA,QAAA,GAAA,mBAAA,GAAA,MAAA;AAAA;;;;;;;UAM5BG,MAAQ,QAAA,CAAA,iBADhBC,YAIEC,WAAA,EAAA;AAAA;YAFC,YAAA,EAAYL,IAAQ,CAAA,QAAA,IAAIM,IAAY,CAAA,YAAA;AAAA,YACpC,OAAA,EAASH,MAAQ,QAAA;AAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"ysPlayer.vue2.mjs","sources":["../../../../../../../packages/components/tzj-player/src/ysPlayer.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useElementSize } from \"@vueuse/core\";\nimport {\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from \"vue\";\nimport ErrorPage from \"./errorPage.vue\";\nimport { uuid } from \"./tzj-player\";\n// 萤石云播放器\ndefineOptions({\n name: \"YsPlayer\",\n});\n\n// 传值方式\n// 1、传url、accessToken\n// 2、传deviceSerial、channel、accessToken\nconst props = defineProps<{\n // 播放地址\n // 高清:ezopen://open.ys7.com/${设备序列号}/${通道号}.hd.live\n // 流畅:ezopen://open.ys7.com/${设备序列号}/${通道号}.live\n url?: string;\n // 设备序列号\n deviceSerial?: string;\n // 通道号\n channel?: number;\n // 清晰度,默认为空,也表示高清\n // hd:高清;sd:流畅\n quality?: \"hd\" | \"sd\" | \"\";\n accessToken: string;\n // 播放器模板ID\n playerTemplate?: string;\n // 设备名称\n areaName?: string;\n}>();\n\n// 播放器模板ID\n// 可在萤石云控制台查看、修改、获取\n// 位置:云直播-轻应用-特致珈默认模板\nconst PLAYER_TEMPLATE = \"5f295a9341a74d439b5d69374c90d501\";\nconst id = uuid();\nlet playerInstance: any = null;\nlet errorMsg = \"\";\nconst ysRef = shallowRef();\nconst containerRef = shallowRef();\nconst { width, height } = useElementSize(ysRef);\nconst { width: childWidth, height: childHeight } = useElementSize(containerRef);\nlet ratio = 16 / 9;\nlet isCurrentFullscreen = false;\n\n// 添加重连次数控制,防止无限重连\nconst reconnectAttempts = ref(0);\nconst maxReconnectAttempts = 3;\n\n// 添加防抖处理URL变化\nconst debouncedPlay = debounce(() => {\n play();\n}, 500);\n\n// 监听URL变化,使用防抖处理\nwatch(\n () => props.url,\n () => {\n debouncedPlay();\n },\n);\n\nonMounted(() => play());\n\nonBeforeUnmount(() => destroy());\n\ndefineExpose({ play, destroy, resize });\n\n// 防抖函数\nfunction debounce(func: Function, wait: number) {\n let timeout: ReturnType<typeof setTimeout> | null = null;\n return function (this: any, ...args: any[]) {\n if (timeout) clearTimeout(timeout);\n timeout = setTimeout(() => func.apply(this, args), wait);\n };\n}\n\n// 加上防抖的 resize 函数\nconst debouncedResize = debounce(resize, 300);\n\nwatch(\n () => [width.value, height.value, ratio],\n () => {\n if (!isCurrentFullscreen) {\n debouncedResize();\n }\n },\n);\n\nasync function play(options?: Record<string, any>) {\n if (!props.accessToken) {\n errorMsg = `params 'accessToken' is not found`;\n } else {\n const url = formatterUrl();\n if (url) {\n createPlayerDom();\n await nextTick();\n await createPlayer(options);\n }\n }\n}\n\nfunction destroy() {\n if (playerInstance) {\n try {\n // 确保播放器实例完全销毁\n playerInstance.destroy?.();\n } catch (e) {\n console.warn(\"播放器销毁过程中出现错误:\", e);\n }\n playerInstance = null;\n removePlayerDom();\n }\n}\n\nfunction resize() {\n const containerWidth = childWidth.value;\n const containerHeight = childHeight.value;\n // 如果容器尺寸无效,直接返回\n if (containerWidth <= 0 || containerHeight <= 0) return;\n\n // 计算播放器尺寸,保持宽高比\n\n const aspectRatio = ratio;\n\n let playerWidth = containerWidth;\n let playerHeight = playerWidth / aspectRatio;\n\n // 如果计算出的高度超过容器高度,以高度为准重新计算\n if (playerHeight > containerHeight) {\n playerHeight = containerHeight;\n playerWidth = playerHeight * aspectRatio;\n }\n\n // 尝试使用播放器实例的resize方法\n if (playerInstance?.resize) {\n playerInstance.resize(playerWidth, playerHeight);\n return;\n }\n\n // 如果没有播放器实例,直接操作DOM\n if (typeof document !== \"undefined\") {\n const playerElement = document.getElementById(id);\n if (playerElement) {\n playerElement.style.width = `${playerWidth}px`;\n playerElement.style.height = `${playerHeight}px`;\n }\n }\n}\n\n/**\n * 创建萤石云播放器实例,播放萤石云直播流\n */\nasync function createPlayer(options?: Record<string, any>) {\n try {\n // 动态导入 EZUIKit,避免 SSR 环境下的 window 访问错误\n const EZUIKit = await import(\"ezuikit-js\");\n\n playerInstance = new EZUIKit.default.EZUIKitPlayer({\n id,\n url: formatterUrl(),\n accessToken: props.accessToken,\n template: props.playerTemplate || PLAYER_TEMPLATE,\n width: width.value,\n height: height.value,\n audio: 1,\n // @ts-ignore\n loggerOptions: {\n name: \"YSPLAYER\",\n level: \"ERROR\",\n showTime: true,\n },\n staticPath: \"/plugins/ezuikit/ezuikit_static\",\n ...options,\n });\n\n // 监听播放错误事件,限制重连次数\n playerInstance.on(\"error\", (err: any) => {\n console.error(\"萤石云播放器错误:\", err);\n // 控制重连次数\n if (reconnectAttempts.value < maxReconnectAttempts) {\n reconnectAttempts.value++;\n setTimeout(() => {\n destroy();\n play();\n }, 3000 * reconnectAttempts.value);\n }\n });\n } catch (error) {\n console.error(\"Failed to load EZUIKit:\", error);\n errorMsg = \"播放器加载失败\";\n return;\n }\n\n playerInstance.eventEmitter.on(\"fullscreen\", () => {\n isCurrentFullscreen = true;\n });\n playerInstance.eventEmitter.on(\"exitFullscreen\", () => {\n isCurrentFullscreen = false;\n });\n playerInstance.eventEmitter.on(\"videoInfo\", (args: any) => {\n const { width: w, height: h } = args;\n // 计算播放器宽高比\n if (w && h) {\n ratio = w / h;\n }\n debouncedResize();\n });\n}\n\nfunction formatterUrl(): string {\n if (props.url) {\n return props.url;\n } else {\n if (props.deviceSerial && props.channel) {\n const quality =\n props.quality === \"\" || props.quality === \"hd\" ? \"hd.\" : \"\";\n return `ezopen://open.ys7.com/${props.deviceSerial}/${props.channel}.${quality}live`;\n } else {\n errorMsg = `params 'deviceSerial' or 'channel' is not found`;\n return \"\";\n }\n }\n}\n\n// 移除播放器DOM\nfunction removePlayerDom() {\n if (typeof document !== \"undefined\") {\n const dom = document.getElementById(id);\n dom && dom.remove();\n }\n}\n// 创建播放器DOM\nfunction createPlayerDom() {\n if (!errorMsg) {\n removePlayerDom();\n if (typeof document !== \"undefined\") {\n const dom = document.createElement(\"div\");\n dom.id = id;\n dom.style.width = \"100%\";\n dom.style.height = \"100%\";\n containerRef.value?.appendChild(dom);\n }\n }\n}\n</script>\n\n<template>\n <div ref=\"ysRef\" class=\"i-tzj-ysplayer\">\n <div\n ref=\"containerRef\"\n class=\"i-tzj-ysplayer\"\n style=\"width: 100%; height: 100%; position: relative\"\n />\n <ErrorPage\n v-if=\"errorMsg\"\n :video-name=\"areaName || deviceSerial\"\n :message=\"errorMsg\"\n />\n </div>\n</template>\n"],"names":["_createElementBlock","_createElementVNode","_unref","_createBlock","ErrorPage","areaName","deviceSerial"],"mappings":";;;;;;;;AA0CA,MAAM,eAAkB,GAAA,kCAAA;AAaxB,MAAM,oBAAuB,GAAA,CAAA;;;;;;;;;;;;;;;;AAnC7B,IAAA,MAAM,KAAQ,GAAA,OAAA;AAuBd,IAAA,MAAM,KAAK,IAAK,EAAA;AAChB,IAAA,IAAI,cAAsB,GAAA,IAAA;AAC1B,IAAA,IAAI,QAAW,GAAA,EAAA;AAC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,EAAA,cAAA;AAAA,cAAJ,GAAI,EAAA,YAAA;AAAA,cACJ,KAAM,EAAA,gBAAA;AAAA,cACN,OAAA,EAAqD,OAAA,EAAA,QAAA,QAAA,EAAA,MAAA,EAAA,YAAA,UAAA;AAAA;;;;;UAG/CC,MAAQ,QAAA,CAAA,iBADhBC,YAIEC,WAAA,EAAA;AAAA;YAFC,YAAA,EAAYC,IAAQ,CAAA,QAAA,IAAIC,IAAY,CAAA,YAAA;AAAA,YACpC,OAAA,EAASJ,MAAQ,QAAA;AAAA;;;;;;;;;;;"}
@@ -1482,18 +1482,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1482
1482
  type: StringConstructor;
1483
1483
  default: string;
1484
1484
  };
1485
- }>, {
1486
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1487
- videoName: {
1488
- type: StringConstructor;
1489
- default: string;
1490
- };
1491
- message: {
1492
- type: StringConstructor;
1493
- default: string;
1494
- };
1495
- }>> & Readonly<{}> & {}>;
1496
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1485
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1497
1486
  videoName: {
1498
1487
  type: StringConstructor;
1499
1488
  default: string;
@@ -1561,18 +1550,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1561
1550
  type: StringConstructor;
1562
1551
  default: string;
1563
1552
  };
1564
- }>, {
1565
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1566
- videoName: {
1567
- type: StringConstructor;
1568
- default: string;
1569
- };
1570
- message: {
1571
- type: StringConstructor;
1572
- default: string;
1573
- };
1574
- }>> & Readonly<{}> & {}>;
1575
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1553
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1576
1554
  videoName: {
1577
1555
  type: StringConstructor;
1578
1556
  default: string;
@@ -1551,18 +1551,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
1551
1551
  type: StringConstructor;
1552
1552
  default: string;
1553
1553
  };
1554
- }>, {
1555
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1556
- videoName: {
1557
- type: StringConstructor;
1558
- default: string;
1559
- };
1560
- message: {
1561
- type: StringConstructor;
1562
- default: string;
1563
- };
1564
- }>> & Readonly<{}> & {}>;
1565
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1554
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1566
1555
  videoName: {
1567
1556
  type: StringConstructor;
1568
1557
  default: string;
@@ -1630,18 +1619,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
1630
1619
  type: StringConstructor;
1631
1620
  default: string;
1632
1621
  };
1633
- }>, {
1634
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1635
- videoName: {
1636
- type: StringConstructor;
1637
- default: string;
1638
- };
1639
- message: {
1640
- type: StringConstructor;
1641
- default: string;
1642
- };
1643
- }>> & Readonly<{}> & {}>;
1644
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1622
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1645
1623
  videoName: {
1646
1624
  type: StringConstructor;
1647
1625
  default: string;
@@ -1757,18 +1735,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
1757
1735
  type: StringConstructor;
1758
1736
  default: string;
1759
1737
  };
1760
- }>, {
1761
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1762
- videoName: {
1763
- type: StringConstructor;
1764
- default: string;
1765
- };
1766
- message: {
1767
- type: StringConstructor;
1768
- default: string;
1769
- };
1770
- }>> & Readonly<{}> & {}>;
1771
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1738
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1772
1739
  videoName: {
1773
1740
  type: StringConstructor;
1774
1741
  default: string;
@@ -3295,18 +3262,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
3295
3262
  type: StringConstructor;
3296
3263
  default: string;
3297
3264
  };
3298
- }>, {
3299
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
3300
- videoName: {
3301
- type: StringConstructor;
3302
- default: string;
3303
- };
3304
- message: {
3305
- type: StringConstructor;
3306
- default: string;
3307
- };
3308
- }>> & Readonly<{}> & {}>;
3309
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3265
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3310
3266
  videoName: {
3311
3267
  type: StringConstructor;
3312
3268
  default: string;
@@ -3374,18 +3330,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
3374
3330
  type: StringConstructor;
3375
3331
  default: string;
3376
3332
  };
3377
- }>, {
3378
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
3379
- videoName: {
3380
- type: StringConstructor;
3381
- default: string;
3382
- };
3383
- message: {
3384
- type: StringConstructor;
3385
- default: string;
3386
- };
3387
- }>> & Readonly<{}> & {}>;
3388
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3333
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3389
3334
  videoName: {
3390
3335
  type: StringConstructor;
3391
3336
  default: string;
@@ -3548,18 +3493,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
3548
3493
  type: StringConstructor;
3549
3494
  default: string;
3550
3495
  };
3551
- }>, {
3552
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
3553
- videoName: {
3554
- type: StringConstructor;
3555
- default: string;
3556
- };
3557
- message: {
3558
- type: StringConstructor;
3559
- default: string;
3560
- };
3561
- }>> & Readonly<{}> & {}>;
3562
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3496
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3563
3497
  videoName: {
3564
3498
  type: StringConstructor;
3565
3499
  default: string;
@@ -5101,18 +5035,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
5101
5035
  type: StringConstructor;
5102
5036
  default: string;
5103
5037
  };
5104
- }>, {
5105
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
5106
- videoName: {
5107
- type: StringConstructor;
5108
- default: string;
5109
- };
5110
- message: {
5111
- type: StringConstructor;
5112
- default: string;
5113
- };
5114
- }>> & Readonly<{}> & {}>;
5115
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5038
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5116
5039
  videoName: {
5117
5040
  type: StringConstructor;
5118
5041
  default: string;
@@ -5180,18 +5103,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
5180
5103
  type: StringConstructor;
5181
5104
  default: string;
5182
5105
  };
5183
- }>, {
5184
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
5185
- videoName: {
5186
- type: StringConstructor;
5187
- default: string;
5188
- };
5189
- message: {
5190
- type: StringConstructor;
5191
- default: string;
5192
- };
5193
- }>> & Readonly<{}> & {}>;
5194
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5106
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5195
5107
  videoName: {
5196
5108
  type: StringConstructor;
5197
5109
  default: string;
@@ -5306,18 +5218,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
5306
5218
  type: StringConstructor;
5307
5219
  default: string;
5308
5220
  };
5309
- }>, {
5310
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
5311
- videoName: {
5312
- type: StringConstructor;
5313
- default: string;
5314
- };
5315
- message: {
5316
- type: StringConstructor;
5317
- default: string;
5318
- };
5319
- }>> & Readonly<{}> & {}>;
5320
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5221
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
5321
5222
  videoName: {
5322
5223
  type: StringConstructor;
5323
5224
  default: string;
@@ -6843,18 +6744,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
6843
6744
  type: StringConstructor;
6844
6745
  default: string;
6845
6746
  };
6846
- }>, {
6847
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
6848
- videoName: {
6849
- type: StringConstructor;
6850
- default: string;
6851
- };
6852
- message: {
6853
- type: StringConstructor;
6854
- default: string;
6855
- };
6856
- }>> & Readonly<{}> & {}>;
6857
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6747
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6858
6748
  videoName: {
6859
6749
  type: StringConstructor;
6860
6750
  default: string;
@@ -6922,18 +6812,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
6922
6812
  type: StringConstructor;
6923
6813
  default: string;
6924
6814
  };
6925
- }>, {
6926
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
6927
- videoName: {
6928
- type: StringConstructor;
6929
- default: string;
6930
- };
6931
- message: {
6932
- type: StringConstructor;
6933
- default: string;
6934
- };
6935
- }>> & Readonly<{}> & {}>;
6936
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6815
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6937
6816
  videoName: {
6938
6817
  type: StringConstructor;
6939
6818
  default: string;
@@ -7099,18 +6978,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
7099
6978
  type: StringConstructor;
7100
6979
  default: string;
7101
6980
  };
7102
- }>, {
7103
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
7104
- videoName: {
7105
- type: StringConstructor;
7106
- default: string;
7107
- };
7108
- message: {
7109
- type: StringConstructor;
7110
- default: string;
7111
- };
7112
- }>> & Readonly<{}> & {}>;
7113
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6981
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7114
6982
  videoName: {
7115
6983
  type: StringConstructor;
7116
6984
  default: string;
@@ -8652,18 +8520,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
8652
8520
  type: StringConstructor;
8653
8521
  default: string;
8654
8522
  };
8655
- }>, {
8656
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
8657
- videoName: {
8658
- type: StringConstructor;
8659
- default: string;
8660
- };
8661
- message: {
8662
- type: StringConstructor;
8663
- default: string;
8664
- };
8665
- }>> & Readonly<{}> & {}>;
8666
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8523
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8667
8524
  videoName: {
8668
8525
  type: StringConstructor;
8669
8526
  default: string;
@@ -8731,18 +8588,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
8731
8588
  type: StringConstructor;
8732
8589
  default: string;
8733
8590
  };
8734
- }>, {
8735
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
8736
- videoName: {
8737
- type: StringConstructor;
8738
- default: string;
8739
- };
8740
- message: {
8741
- type: StringConstructor;
8742
- default: string;
8743
- };
8744
- }>> & Readonly<{}> & {}>;
8745
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8591
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8746
8592
  videoName: {
8747
8593
  type: StringConstructor;
8748
8594
  default: string;
@@ -8857,18 +8703,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
8857
8703
  type: StringConstructor;
8858
8704
  default: string;
8859
8705
  };
8860
- }>, {
8861
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
8862
- videoName: {
8863
- type: StringConstructor;
8864
- default: string;
8865
- };
8866
- message: {
8867
- type: StringConstructor;
8868
- default: string;
8869
- };
8870
- }>> & Readonly<{}> & {}>;
8871
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8706
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8872
8707
  videoName: {
8873
8708
  type: StringConstructor;
8874
8709
  default: string;
@@ -10394,18 +10229,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
10394
10229
  type: StringConstructor;
10395
10230
  default: string;
10396
10231
  };
10397
- }>, {
10398
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
10399
- videoName: {
10400
- type: StringConstructor;
10401
- default: string;
10402
- };
10403
- message: {
10404
- type: StringConstructor;
10405
- default: string;
10406
- };
10407
- }>> & Readonly<{}> & {}>;
10408
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10232
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10409
10233
  videoName: {
10410
10234
  type: StringConstructor;
10411
10235
  default: string;
@@ -10473,18 +10297,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
10473
10297
  type: StringConstructor;
10474
10298
  default: string;
10475
10299
  };
10476
- }>, {
10477
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
10478
- videoName: {
10479
- type: StringConstructor;
10480
- default: string;
10481
- };
10482
- message: {
10483
- type: StringConstructor;
10484
- default: string;
10485
- };
10486
- }>> & Readonly<{}> & {}>;
10487
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10300
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10488
10301
  videoName: {
10489
10302
  type: StringConstructor;
10490
10303
  default: string;
@@ -10545,18 +10358,7 @@ export declare const ITzjPlayer: import("../../types").SFCWithInstall<import("vu
10545
10358
  type: StringConstructor;
10546
10359
  default: string;
10547
10360
  };
10548
- }>, {
10549
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
10550
- videoName: {
10551
- type: StringConstructor;
10552
- default: string;
10553
- };
10554
- message: {
10555
- type: StringConstructor;
10556
- default: string;
10557
- };
10558
- }>> & Readonly<{}> & {}>;
10559
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10361
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10560
10362
  videoName: {
10561
10363
  type: StringConstructor;
10562
10364
  default: string;
@@ -1482,18 +1482,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1482
1482
  type: StringConstructor;
1483
1483
  default: string;
1484
1484
  };
1485
- }>, {
1486
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1487
- videoName: {
1488
- type: StringConstructor;
1489
- default: string;
1490
- };
1491
- message: {
1492
- type: StringConstructor;
1493
- default: string;
1494
- };
1495
- }>> & Readonly<{}> & {}>;
1496
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1485
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1497
1486
  videoName: {
1498
1487
  type: StringConstructor;
1499
1488
  default: string;
@@ -1561,18 +1550,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1561
1550
  type: StringConstructor;
1562
1551
  default: string;
1563
1552
  };
1564
- }>, {
1565
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1566
- videoName: {
1567
- type: StringConstructor;
1568
- default: string;
1569
- };
1570
- message: {
1571
- type: StringConstructor;
1572
- default: string;
1573
- };
1574
- }>> & Readonly<{}> & {}>;
1575
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1553
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1576
1554
  videoName: {
1577
1555
  type: StringConstructor;
1578
1556
  default: string;
@@ -108,18 +108,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
108
108
  type: StringConstructor;
109
109
  default: string;
110
110
  };
111
- }>, {
112
- props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
113
- videoName: {
114
- type: StringConstructor;
115
- default: string;
116
- };
117
- message: {
118
- type: StringConstructor;
119
- default: string;
120
- };
121
- }>> & Readonly<{}> & {}>;
122
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
111
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
123
112
  videoName: {
124
113
  type: StringConstructor;
125
114
  default: string;
@@ -9,10 +9,6 @@ var errorPage_vue_vue_type_script_setup_true_lang = require('./errorPage.vue2.js
9
9
 
10
10
  var __defProp = Object.defineProperty;
11
11
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
- const _hoisted_1 = {
13
- key: 0,
14
- class: "i-tzj-easyPlayer__top"
15
- };
16
12
  const MAX_CREATE_RETRY = 3;
17
13
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
14
  ...{
@@ -56,7 +52,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
56
52
  const dom = document.getElementById(id);
57
53
  if (dom && width > 0 && height > 0 && !realFullscreen.value) {
58
54
  dom.style.width = `${width}px`;
59
- dom.style.height = props.areaName || props.deviceSerial ? `${height - 32}px` : `${height}px`;
55
+ dom.style.height = `${height}px`;
60
56
  }
61
57
  }
62
58
  });
@@ -444,30 +440,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
444
440
  class: vue.normalizeClass(["i-tzj-easyPlayer", customBar.value ? "i-tzj-easyPlayer--custom" : ""])
445
441
  },
446
442
  [
447
- vue.createCommentVNode(" \u64AD\u653E\u5668\u9876\u90E8\u663E\u793A\u533A\u57DF(\u8BBE\u5907)\u540D\u79F0 "),
448
- _ctx.areaName || _ctx.deviceSerial ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
449
- _cache[0] || (_cache[0] = vue.createElementVNode(
450
- "i",
451
- { class: "iconfont icon-shexiangtou4" },
452
- null,
453
- -1
454
- /* CACHED */
455
- )),
456
- vue.createElementVNode(
457
- "span",
458
- null,
459
- vue.toDisplayString(_ctx.areaName || _ctx.deviceSerial),
460
- 1
461
- /* TEXT */
462
- )
463
- ])) : vue.createCommentVNode("v-if", true),
464
443
  !playSuccess.value ? (vue.openBlock(), vue.createBlock(errorPage_vue_vue_type_script_setup_true_lang.default, {
465
- key: 1,
444
+ key: 0,
466
445
  "video-name": _ctx.areaName || _ctx.deviceSerial,
467
446
  message: "\u65E0\u4FE1\u53F7"
468
447
  }, null, 8, ["video-name"])) : vue.createCommentVNode("v-if", true),
469
448
  !playUrl.value ? (vue.openBlock(), vue.createBlock(errorPage_vue_vue_type_script_setup_true_lang.default, {
470
- key: 2,
449
+ key: 1,
471
450
  "video-name": _ctx.areaName || _ctx.deviceSerial,
472
451
  message: "\u65E0\u64AD\u653E\u5730\u5740"
473
452
  }, null, 8, ["video-name"])) : vue.createCommentVNode("v-if", true),