@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.
- package/cdn/index.cdn.js +4 -4
- package/cdn/index.cdn.js.map +1 -1
- package/cdn/index.cdn.mjs +7 -7
- package/cdn/index.cdn.mjs.map +1 -1
- package/cdn/index.css +1 -1
- package/es/components/tzj-player/index.d.ts +18 -216
- package/es/components/tzj-player/src/ctyun-player.vue.d.ts +2 -24
- package/es/components/tzj-player/src/easyPlayer.vue.d.ts +1 -12
- package/es/components/tzj-player/src/easyPlayer.vue2.mjs +4 -25
- package/es/components/tzj-player/src/easyPlayer.vue2.mjs.map +1 -1
- package/es/components/tzj-player/src/errorPage.vue.d.ts +1 -12
- package/es/components/tzj-player/src/errorPage.vue2.mjs +4 -25
- package/es/components/tzj-player/src/errorPage.vue2.mjs.map +1 -1
- package/es/components/tzj-player/src/tzj-player.vue.d.ts +18 -216
- package/es/components/tzj-player/src/tzj-player.vue2.mjs +25 -4
- package/es/components/tzj-player/src/tzj-player.vue2.mjs.map +1 -1
- package/es/components/tzj-player/src/ysPlayer.vue.d.ts +1 -12
- package/es/components/tzj-player/src/ysPlayer.vue2.mjs +5 -29
- package/es/components/tzj-player/src/ysPlayer.vue2.mjs.map +1 -1
- package/es/components/tzj-player/src/yunzhiyanPlayer.vue.d.ts +2 -24
- package/lib/components/tzj-player/index.d.ts +18 -216
- package/lib/components/tzj-player/src/ctyun-player.vue.d.ts +2 -24
- package/lib/components/tzj-player/src/easyPlayer.vue.d.ts +1 -12
- package/lib/components/tzj-player/src/easyPlayer.vue2.js +3 -24
- package/lib/components/tzj-player/src/easyPlayer.vue2.js.map +1 -1
- package/lib/components/tzj-player/src/errorPage.vue.d.ts +1 -12
- package/lib/components/tzj-player/src/errorPage.vue2.js +3 -24
- package/lib/components/tzj-player/src/errorPage.vue2.js.map +1 -1
- package/lib/components/tzj-player/src/tzj-player.vue.d.ts +18 -216
- package/lib/components/tzj-player/src/tzj-player.vue2.js +24 -3
- package/lib/components/tzj-player/src/tzj-player.vue2.js.map +1 -1
- package/lib/components/tzj-player/src/ysPlayer.vue.d.ts +1 -12
- package/lib/components/tzj-player/src/ysPlayer.vue2.js +4 -28
- package/lib/components/tzj-player/src/ysPlayer.vue2.js.map +1 -1
- package/lib/components/tzj-player/src/yunzhiyanPlayer.vue.d.ts +2 -24
- package/package.json +1 -1
- package/theme-default/i-tzj-player.css +1 -1
- package/theme-default/index.css +1 -1
|
@@ -7,18 +7,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
}>, {
|
|
11
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
videoName: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
message: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
}>> & Readonly<{}> & {}>;
|
|
21
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
11
|
videoName: {
|
|
23
12
|
type: StringConstructor;
|
|
24
13
|
default: string;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = { class: "i-tzj-player__error" };
|
|
4
|
-
const _hoisted_2 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "i-tzj-easyPlayer__top"
|
|
7
|
-
};
|
|
8
|
-
const _hoisted_3 = { class: "i-tzj-player__error_content" };
|
|
4
|
+
const _hoisted_2 = { class: "i-tzj-player__error_content" };
|
|
9
5
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
6
|
...{
|
|
11
|
-
name: "
|
|
7
|
+
name: "ErrorPage"
|
|
12
8
|
},
|
|
13
9
|
__name: "errorPage",
|
|
14
10
|
props: {
|
|
@@ -22,28 +18,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
18
|
}
|
|
23
19
|
},
|
|
24
20
|
setup(__props) {
|
|
25
|
-
const props = __props;
|
|
26
21
|
return (_ctx, _cache) => {
|
|
27
22
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
28
|
-
__props.videoName ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
29
|
-
_cache[0] || (_cache[0] = createElementVNode(
|
|
30
|
-
"i",
|
|
31
|
-
{ class: "iconfont icon-shexiangtou4" },
|
|
32
|
-
null,
|
|
33
|
-
-1
|
|
34
|
-
/* CACHED */
|
|
35
|
-
)),
|
|
36
|
-
createElementVNode(
|
|
37
|
-
"span",
|
|
38
|
-
null,
|
|
39
|
-
toDisplayString(__props.videoName),
|
|
40
|
-
1
|
|
41
|
-
/* TEXT */
|
|
42
|
-
)
|
|
43
|
-
])) : createCommentVNode("v-if", true),
|
|
44
23
|
createElementVNode(
|
|
45
24
|
"div",
|
|
46
|
-
|
|
25
|
+
_hoisted_2,
|
|
47
26
|
toDisplayString(__props.message),
|
|
48
27
|
1
|
|
49
28
|
/* TEXT */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorPage.vue2.mjs","sources":["../../../../../../../packages/components/tzj-player/src/errorPage.vue"],"sourcesContent":["<script setup lang=\"ts\">\ndefineOptions({\n name: \"
|
|
1
|
+
{"version":3,"file":"errorPage.vue2.mjs","sources":["../../../../../../../packages/components/tzj-player/src/errorPage.vue"],"sourcesContent":["<script setup lang=\"ts\">\ndefineOptions({\n name: \"ErrorPage\",\n});\ndefineProps({\n videoName: {\n type: String,\n default: \"\",\n },\n message: {\n type: String,\n default: \"\",\n },\n});\n</script>\n\n<template>\n <div class=\"i-tzj-player__error\">\n <div class=\"i-tzj-player__error_content\">\n {{ message }}\n </div>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_createElementVNode","_toDisplayString"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiBE,MAAA,OAAAA,SAAA,EAAA,EAAAC,kBAIM,CAAA,KAAA,EAJN,UAIM,EAAA;AAAA,QAHJC,kBAAA;AAAA,UAEM,KAAA;AAAA,UAFN,UAAA;AAAA,UAEMC,eAAA,CADD,QAAO,OAAA,CAAA;AAAA,UAAA;AAAA;AAAA;AAAA;;;;;;;"}
|
|
@@ -1550,18 +1550,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1550
1550
|
type: StringConstructor;
|
|
1551
1551
|
default: string;
|
|
1552
1552
|
};
|
|
1553
|
-
}>, {
|
|
1554
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1555
|
-
videoName: {
|
|
1556
|
-
type: StringConstructor;
|
|
1557
|
-
default: string;
|
|
1558
|
-
};
|
|
1559
|
-
message: {
|
|
1560
|
-
type: StringConstructor;
|
|
1561
|
-
default: string;
|
|
1562
|
-
};
|
|
1563
|
-
}>> & Readonly<{}> & {}>;
|
|
1564
|
-
}, {}, {}, {}, 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<{
|
|
1565
1554
|
videoName: {
|
|
1566
1555
|
type: StringConstructor;
|
|
1567
1556
|
default: string;
|
|
@@ -1629,18 +1618,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1629
1618
|
type: StringConstructor;
|
|
1630
1619
|
default: string;
|
|
1631
1620
|
};
|
|
1632
|
-
}>, {
|
|
1633
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1634
|
-
videoName: {
|
|
1635
|
-
type: StringConstructor;
|
|
1636
|
-
default: string;
|
|
1637
|
-
};
|
|
1638
|
-
message: {
|
|
1639
|
-
type: StringConstructor;
|
|
1640
|
-
default: string;
|
|
1641
|
-
};
|
|
1642
|
-
}>> & Readonly<{}> & {}>;
|
|
1643
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1621
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1644
1622
|
videoName: {
|
|
1645
1623
|
type: StringConstructor;
|
|
1646
1624
|
default: string;
|
|
@@ -1756,18 +1734,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1756
1734
|
type: StringConstructor;
|
|
1757
1735
|
default: string;
|
|
1758
1736
|
};
|
|
1759
|
-
}>, {
|
|
1760
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1761
|
-
videoName: {
|
|
1762
|
-
type: StringConstructor;
|
|
1763
|
-
default: string;
|
|
1764
|
-
};
|
|
1765
|
-
message: {
|
|
1766
|
-
type: StringConstructor;
|
|
1767
|
-
default: string;
|
|
1768
|
-
};
|
|
1769
|
-
}>> & Readonly<{}> & {}>;
|
|
1770
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1737
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1771
1738
|
videoName: {
|
|
1772
1739
|
type: StringConstructor;
|
|
1773
1740
|
default: string;
|
|
@@ -3294,18 +3261,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3294
3261
|
type: StringConstructor;
|
|
3295
3262
|
default: string;
|
|
3296
3263
|
};
|
|
3297
|
-
}>, {
|
|
3298
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
3299
|
-
videoName: {
|
|
3300
|
-
type: StringConstructor;
|
|
3301
|
-
default: string;
|
|
3302
|
-
};
|
|
3303
|
-
message: {
|
|
3304
|
-
type: StringConstructor;
|
|
3305
|
-
default: string;
|
|
3306
|
-
};
|
|
3307
|
-
}>> & Readonly<{}> & {}>;
|
|
3308
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3264
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3309
3265
|
videoName: {
|
|
3310
3266
|
type: StringConstructor;
|
|
3311
3267
|
default: string;
|
|
@@ -3373,18 +3329,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3373
3329
|
type: StringConstructor;
|
|
3374
3330
|
default: string;
|
|
3375
3331
|
};
|
|
3376
|
-
}>, {
|
|
3377
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
3378
|
-
videoName: {
|
|
3379
|
-
type: StringConstructor;
|
|
3380
|
-
default: string;
|
|
3381
|
-
};
|
|
3382
|
-
message: {
|
|
3383
|
-
type: StringConstructor;
|
|
3384
|
-
default: string;
|
|
3385
|
-
};
|
|
3386
|
-
}>> & Readonly<{}> & {}>;
|
|
3387
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3332
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3388
3333
|
videoName: {
|
|
3389
3334
|
type: StringConstructor;
|
|
3390
3335
|
default: string;
|
|
@@ -3547,18 +3492,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3547
3492
|
type: StringConstructor;
|
|
3548
3493
|
default: string;
|
|
3549
3494
|
};
|
|
3550
|
-
}>, {
|
|
3551
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
3552
|
-
videoName: {
|
|
3553
|
-
type: StringConstructor;
|
|
3554
|
-
default: string;
|
|
3555
|
-
};
|
|
3556
|
-
message: {
|
|
3557
|
-
type: StringConstructor;
|
|
3558
|
-
default: string;
|
|
3559
|
-
};
|
|
3560
|
-
}>> & Readonly<{}> & {}>;
|
|
3561
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3495
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3562
3496
|
videoName: {
|
|
3563
3497
|
type: StringConstructor;
|
|
3564
3498
|
default: string;
|
|
@@ -5100,18 +5034,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5100
5034
|
type: StringConstructor;
|
|
5101
5035
|
default: string;
|
|
5102
5036
|
};
|
|
5103
|
-
}>, {
|
|
5104
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5105
|
-
videoName: {
|
|
5106
|
-
type: StringConstructor;
|
|
5107
|
-
default: string;
|
|
5108
|
-
};
|
|
5109
|
-
message: {
|
|
5110
|
-
type: StringConstructor;
|
|
5111
|
-
default: string;
|
|
5112
|
-
};
|
|
5113
|
-
}>> & Readonly<{}> & {}>;
|
|
5114
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5037
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5115
5038
|
videoName: {
|
|
5116
5039
|
type: StringConstructor;
|
|
5117
5040
|
default: string;
|
|
@@ -5179,18 +5102,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5179
5102
|
type: StringConstructor;
|
|
5180
5103
|
default: string;
|
|
5181
5104
|
};
|
|
5182
|
-
}>, {
|
|
5183
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5184
|
-
videoName: {
|
|
5185
|
-
type: StringConstructor;
|
|
5186
|
-
default: string;
|
|
5187
|
-
};
|
|
5188
|
-
message: {
|
|
5189
|
-
type: StringConstructor;
|
|
5190
|
-
default: string;
|
|
5191
|
-
};
|
|
5192
|
-
}>> & Readonly<{}> & {}>;
|
|
5193
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5105
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5194
5106
|
videoName: {
|
|
5195
5107
|
type: StringConstructor;
|
|
5196
5108
|
default: string;
|
|
@@ -5305,18 +5217,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
5305
5217
|
type: StringConstructor;
|
|
5306
5218
|
default: string;
|
|
5307
5219
|
};
|
|
5308
|
-
}>, {
|
|
5309
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5310
|
-
videoName: {
|
|
5311
|
-
type: StringConstructor;
|
|
5312
|
-
default: string;
|
|
5313
|
-
};
|
|
5314
|
-
message: {
|
|
5315
|
-
type: StringConstructor;
|
|
5316
|
-
default: string;
|
|
5317
|
-
};
|
|
5318
|
-
}>> & Readonly<{}> & {}>;
|
|
5319
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5220
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5320
5221
|
videoName: {
|
|
5321
5222
|
type: StringConstructor;
|
|
5322
5223
|
default: string;
|
|
@@ -6842,18 +6743,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6842
6743
|
type: StringConstructor;
|
|
6843
6744
|
default: string;
|
|
6844
6745
|
};
|
|
6845
|
-
}>, {
|
|
6846
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
6847
|
-
videoName: {
|
|
6848
|
-
type: StringConstructor;
|
|
6849
|
-
default: string;
|
|
6850
|
-
};
|
|
6851
|
-
message: {
|
|
6852
|
-
type: StringConstructor;
|
|
6853
|
-
default: string;
|
|
6854
|
-
};
|
|
6855
|
-
}>> & Readonly<{}> & {}>;
|
|
6856
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6746
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6857
6747
|
videoName: {
|
|
6858
6748
|
type: StringConstructor;
|
|
6859
6749
|
default: string;
|
|
@@ -6921,18 +6811,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6921
6811
|
type: StringConstructor;
|
|
6922
6812
|
default: string;
|
|
6923
6813
|
};
|
|
6924
|
-
}>, {
|
|
6925
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
6926
|
-
videoName: {
|
|
6927
|
-
type: StringConstructor;
|
|
6928
|
-
default: string;
|
|
6929
|
-
};
|
|
6930
|
-
message: {
|
|
6931
|
-
type: StringConstructor;
|
|
6932
|
-
default: string;
|
|
6933
|
-
};
|
|
6934
|
-
}>> & Readonly<{}> & {}>;
|
|
6935
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6814
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6936
6815
|
videoName: {
|
|
6937
6816
|
type: StringConstructor;
|
|
6938
6817
|
default: string;
|
|
@@ -7098,18 +6977,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7098
6977
|
type: StringConstructor;
|
|
7099
6978
|
default: string;
|
|
7100
6979
|
};
|
|
7101
|
-
}>, {
|
|
7102
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
7103
|
-
videoName: {
|
|
7104
|
-
type: StringConstructor;
|
|
7105
|
-
default: string;
|
|
7106
|
-
};
|
|
7107
|
-
message: {
|
|
7108
|
-
type: StringConstructor;
|
|
7109
|
-
default: string;
|
|
7110
|
-
};
|
|
7111
|
-
}>> & Readonly<{}> & {}>;
|
|
7112
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6980
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7113
6981
|
videoName: {
|
|
7114
6982
|
type: StringConstructor;
|
|
7115
6983
|
default: string;
|
|
@@ -8651,18 +8519,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8651
8519
|
type: StringConstructor;
|
|
8652
8520
|
default: string;
|
|
8653
8521
|
};
|
|
8654
|
-
}>, {
|
|
8655
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8656
|
-
videoName: {
|
|
8657
|
-
type: StringConstructor;
|
|
8658
|
-
default: string;
|
|
8659
|
-
};
|
|
8660
|
-
message: {
|
|
8661
|
-
type: StringConstructor;
|
|
8662
|
-
default: string;
|
|
8663
|
-
};
|
|
8664
|
-
}>> & Readonly<{}> & {}>;
|
|
8665
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8522
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8666
8523
|
videoName: {
|
|
8667
8524
|
type: StringConstructor;
|
|
8668
8525
|
default: string;
|
|
@@ -8730,18 +8587,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8730
8587
|
type: StringConstructor;
|
|
8731
8588
|
default: string;
|
|
8732
8589
|
};
|
|
8733
|
-
}>, {
|
|
8734
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8735
|
-
videoName: {
|
|
8736
|
-
type: StringConstructor;
|
|
8737
|
-
default: string;
|
|
8738
|
-
};
|
|
8739
|
-
message: {
|
|
8740
|
-
type: StringConstructor;
|
|
8741
|
-
default: string;
|
|
8742
|
-
};
|
|
8743
|
-
}>> & Readonly<{}> & {}>;
|
|
8744
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8590
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8745
8591
|
videoName: {
|
|
8746
8592
|
type: StringConstructor;
|
|
8747
8593
|
default: string;
|
|
@@ -8856,18 +8702,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
8856
8702
|
type: StringConstructor;
|
|
8857
8703
|
default: string;
|
|
8858
8704
|
};
|
|
8859
|
-
}>, {
|
|
8860
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8861
|
-
videoName: {
|
|
8862
|
-
type: StringConstructor;
|
|
8863
|
-
default: string;
|
|
8864
|
-
};
|
|
8865
|
-
message: {
|
|
8866
|
-
type: StringConstructor;
|
|
8867
|
-
default: string;
|
|
8868
|
-
};
|
|
8869
|
-
}>> & Readonly<{}> & {}>;
|
|
8870
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8705
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8871
8706
|
videoName: {
|
|
8872
8707
|
type: StringConstructor;
|
|
8873
8708
|
default: string;
|
|
@@ -10393,18 +10228,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10393
10228
|
type: StringConstructor;
|
|
10394
10229
|
default: string;
|
|
10395
10230
|
};
|
|
10396
|
-
}>, {
|
|
10397
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10398
|
-
videoName: {
|
|
10399
|
-
type: StringConstructor;
|
|
10400
|
-
default: string;
|
|
10401
|
-
};
|
|
10402
|
-
message: {
|
|
10403
|
-
type: StringConstructor;
|
|
10404
|
-
default: string;
|
|
10405
|
-
};
|
|
10406
|
-
}>> & Readonly<{}> & {}>;
|
|
10407
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10231
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10408
10232
|
videoName: {
|
|
10409
10233
|
type: StringConstructor;
|
|
10410
10234
|
default: string;
|
|
@@ -10472,18 +10296,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10472
10296
|
type: StringConstructor;
|
|
10473
10297
|
default: string;
|
|
10474
10298
|
};
|
|
10475
|
-
}>, {
|
|
10476
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10477
|
-
videoName: {
|
|
10478
|
-
type: StringConstructor;
|
|
10479
|
-
default: string;
|
|
10480
|
-
};
|
|
10481
|
-
message: {
|
|
10482
|
-
type: StringConstructor;
|
|
10483
|
-
default: string;
|
|
10484
|
-
};
|
|
10485
|
-
}>> & Readonly<{}> & {}>;
|
|
10486
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10299
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10487
10300
|
videoName: {
|
|
10488
10301
|
type: StringConstructor;
|
|
10489
10302
|
default: string;
|
|
@@ -10544,18 +10357,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10544
10357
|
type: StringConstructor;
|
|
10545
10358
|
default: string;
|
|
10546
10359
|
};
|
|
10547
|
-
}>, {
|
|
10548
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10549
|
-
videoName: {
|
|
10550
|
-
type: StringConstructor;
|
|
10551
|
-
default: string;
|
|
10552
|
-
};
|
|
10553
|
-
message: {
|
|
10554
|
-
type: StringConstructor;
|
|
10555
|
-
default: string;
|
|
10556
|
-
};
|
|
10557
|
-
}>> & Readonly<{}> & {}>;
|
|
10558
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10360
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10559
10361
|
videoName: {
|
|
10560
10362
|
type: StringConstructor;
|
|
10561
10363
|
default: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, toRefs, shallowRef, watch, computed, openBlock, createElementBlock, createCommentVNode, createBlock, Fragment, resolveDynamicComponent, mergeProps, createVNode } from 'vue';
|
|
1
|
+
import { defineComponent, toRefs, shallowRef, watch, computed, openBlock, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, createBlock, Fragment, resolveDynamicComponent, mergeProps, createVNode } from 'vue';
|
|
2
2
|
import { debounce } from 'lodash-es';
|
|
3
3
|
import './ctyun-player.vue.mjs';
|
|
4
4
|
import './easyPlayer.vue.mjs';
|
|
@@ -13,6 +13,10 @@ import _sfc_main$4 from './easyPlayer.vue2.mjs';
|
|
|
13
13
|
import _sfc_main$5 from './errorPage.vue2.mjs';
|
|
14
14
|
|
|
15
15
|
const _hoisted_1 = { class: "i-tzj-player" };
|
|
16
|
+
const _hoisted_2 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "i-tzj-player__header"
|
|
19
|
+
};
|
|
16
20
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
21
|
...{
|
|
18
22
|
name: "ITzjPlayer"
|
|
@@ -137,14 +141,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
141
|
});
|
|
138
142
|
return (_ctx, _cache) => {
|
|
139
143
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
144
|
+
createCommentVNode(" \u5934\u90E8\u6807\u9898\u680F "),
|
|
145
|
+
_ctx.areaName || _ctx.deviceSerial ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
146
|
+
_cache[0] || (_cache[0] = createElementVNode(
|
|
147
|
+
"i",
|
|
148
|
+
{ class: "iconfont icon-shexiangtou4" },
|
|
149
|
+
null,
|
|
150
|
+
-1
|
|
151
|
+
/* CACHED */
|
|
152
|
+
)),
|
|
153
|
+
createElementVNode(
|
|
154
|
+
"span",
|
|
155
|
+
null,
|
|
156
|
+
toDisplayString(_ctx.areaName || _ctx.deviceSerial),
|
|
157
|
+
1
|
|
158
|
+
/* TEXT */
|
|
159
|
+
)
|
|
160
|
+
])) : createCommentVNode("v-if", true),
|
|
140
161
|
createCommentVNode(" \u9519\u8BEF\u72B6\u6001\u663E\u793A "),
|
|
141
162
|
errorState.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
142
|
-
key:
|
|
163
|
+
key: 1,
|
|
143
164
|
"video-name": _ctx.areaName || _ctx.deviceSerial,
|
|
144
165
|
message: errorState.value.message
|
|
145
166
|
}, null, 8, ["video-name", "message"])) : shouldShowPlayer.value ? (openBlock(), createElementBlock(
|
|
146
167
|
Fragment,
|
|
147
|
-
{ key:
|
|
168
|
+
{ key: 2 },
|
|
148
169
|
[
|
|
149
170
|
createCommentVNode(" \u64AD\u653E\u5668\u7EC4\u4EF6 "),
|
|
150
171
|
(openBlock(), createBlock(
|
|
@@ -162,7 +183,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
183
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
163
184
|
)) : (openBlock(), createElementBlock(
|
|
164
185
|
Fragment,
|
|
165
|
-
{ key:
|
|
186
|
+
{ key: 3 },
|
|
166
187
|
[
|
|
167
188
|
createCommentVNode(" \u65E0\u53EF\u7528\u64AD\u653E\u5668 "),
|
|
168
189
|
createVNode(_sfc_main$5, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tzj-player.vue2.mjs","sources":["../../../../../../../packages/components/tzj-player/src/tzj-player.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { debounce } from \"lodash-es\";\nimport { computed, shallowRef, toRefs, watch } from \"vue\";\nimport CtyunPlayer from \"./ctyun-player.vue\";\nimport EasyPlayer from \"./easyPlayer.vue\";\nimport ErrorPage from \"./errorPage.vue\";\nimport {\n getVideoType,\n isSupportedProtocol,\n TzjPlayerProps,\n} from \"./tzj-player\";\nimport YsPlayer from \"./ysPlayer.vue\";\nimport YunzhiyanPlayer from \"./yunzhiyanPlayer.vue\";\n\ndefineOptions({\n name: \"ITzjPlayer\",\n});\n\nconst props = defineProps(TzjPlayerProps);\nconst { url, platformTypeName, accessToken } = toRefs(props);\n\nconst compRef = shallowRef();\n\n// 防抖处理组件渲染更新,避免频繁切换播放器类型\nconst updatePlayerComponent = debounce(() => {\n // 强制更新组件,销毁旧实例\n if (compRef.value) {\n compRef.value.destroy?.();\n }\n}, 300);\n\n// 监听URL变化,使用防抖处理\nwatch(\n () => [url.value, platformTypeName.value, accessToken.value],\n ([newUrl, newPlatform, newToken], [oldUrl, oldPlatform, oldToken]) => {\n // 只有当值真正发生变化时才更新\n if (\n newUrl !== oldUrl ||\n newPlatform !== oldPlatform ||\n newToken !== oldToken\n ) {\n // 更新播放器组件\n updatePlayerComponent();\n }\n },\n);\n\n/**\n * 平台类型映射表,提升可维护性\n */\nconst PLATFORM_COMPONENTS = {\n 云智眼: YunzhiyanPlayer,\n 萤石云: YsPlayer,\n 天翼云: CtyunPlayer,\n // hls: XgPlayer,\n} as const;\n\n/**\n * 计算当前播放器组件类型\n * 使用计算属性避免重复计算,提升性能\n */\nconst playerComponent = computed(() => {\n // 优先使用指定的平台类型\n if (platformTypeName.value) {\n return (\n PLATFORM_COMPONENTS[\n platformTypeName.value as keyof typeof PLATFORM_COMPONENTS\n ] || EasyPlayer\n );\n }\n\n // 未指定平台类型时,根据URL自动判断\n if (!url.value) {\n return null;\n }\n\n // 检查协议支持性\n if (!isSupportedProtocol(url.value)) {\n return null;\n }\n\n // ezopen协议使用萤石云播放器\n if (url.value.includes(\"ezopen\")) {\n return YsPlayer;\n }\n\n // 根据视频类型选择播放器\n const videoType = getVideoType(url.value);\n return videoType ? EasyPlayer : null;\n});\n\n/**\n * 计算错误状态信息\n * 统一错误状态管理,提升用户体验\n */\nconst errorState = computed(() => {\n // 云智眼平台不需要URL\n if (\n platformTypeName.value === \"云智眼\" ||\n platformTypeName.value === \"天翼云\"\n ) {\n return null;\n }\n\n // 检查URL是否存在\n if (!url.value) {\n return {\n type: \"no-url\",\n message: \"无视频地址\",\n };\n }\n // 检查协议支持性\n if (!isSupportedProtocol(url.value)) {\n return {\n type: \"unsupported-protocol\",\n message: \"不支持该视频协议\",\n };\n }\n\n // 萤石云平台需要accessToken\n if (\n (platformTypeName.value === \"萤石云\" || url.value.includes(\"ezopen\")) &&\n !accessToken.value\n ) {\n return {\n type: \"no-token\",\n message: \"缺少访问令牌\",\n };\n }\n\n return null;\n});\n\n/**\n * 计算是否显示播放器组件\n */\nconst shouldShowPlayer = computed(() => {\n return !errorState.value && playerComponent.value;\n});\n\n/**\n * 暴露的方法,增加错误处理\n */\ndefineExpose({\n /**\n * 播放视频\n * @param options 播放选项\n */\n play(options?: any) {\n if (!compRef.value) {\n props.debug && console.warn(\"[TzjPlayer] 播放器组件未初始化\");\n return;\n }\n compRef.value?.play(options);\n },\n\n /**\n * 销毁播放器\n */\n destroy() {\n if (!compRef.value) {\n props.debug && console.warn(\"[TzjPlayer] 播放器组件未初始化\");\n return;\n }\n compRef.value?.destroy();\n },\n\n /**\n * 调整播放器尺寸\n */\n resize() {\n if (!compRef.value) {\n props.debug && console.warn(\"[TzjPlayer] 播放器组件未初始化\");\n return;\n }\n compRef.value?.resize();\n },\n\n /**\n * 获取当前播放器类型\n */\n getPlayerType() {\n return playerComponent.value?.name || null;\n },\n\n /**\n * 获取错误状态\n */\n getErrorState() {\n return errorState.value;\n },\n});\n</script>\n\n<template>\n <div class=\"i-tzj-player\">\n <!-- 错误状态显示 -->\n <ErrorPage\n v-if=\"errorState\"\n :video-name=\"areaName || deviceSerial\"\n :message=\"errorState.message\"\n />\n\n <!-- 播放器组件 -->\n <component\n :is=\"playerComponent\"\n v-else-if=\"shouldShowPlayer\"\n ref=\"compRef\"\n v-bind=\"props\"\n />\n\n <!-- 无可用播放器 -->\n <ErrorPage v-else :video-name=\"areaName || deviceSerial\" message=\"无信号\" />\n </div>\n</template>\n"],"names":["YunzhiyanPlayer","YsPlayer","CtyunPlayer","EasyPlayer","_openBlock","_createElementBlock","_createCommentVNode","
|
|
1
|
+
{"version":3,"file":"tzj-player.vue2.mjs","sources":["../../../../../../../packages/components/tzj-player/src/tzj-player.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { debounce } from \"lodash-es\";\nimport { computed, shallowRef, toRefs, watch } from \"vue\";\nimport CtyunPlayer from \"./ctyun-player.vue\";\nimport EasyPlayer from \"./easyPlayer.vue\";\nimport ErrorPage from \"./errorPage.vue\";\nimport {\n getVideoType,\n isSupportedProtocol,\n TzjPlayerProps,\n} from \"./tzj-player\";\nimport YsPlayer from \"./ysPlayer.vue\";\nimport YunzhiyanPlayer from \"./yunzhiyanPlayer.vue\";\n\ndefineOptions({\n name: \"ITzjPlayer\",\n});\n\nconst props = defineProps(TzjPlayerProps);\nconst { url, platformTypeName, accessToken } = toRefs(props);\n\nconst compRef = shallowRef();\n\n// 防抖处理组件渲染更新,避免频繁切换播放器类型\nconst updatePlayerComponent = debounce(() => {\n // 强制更新组件,销毁旧实例\n if (compRef.value) {\n compRef.value.destroy?.();\n }\n}, 300);\n\n// 监听URL变化,使用防抖处理\nwatch(\n () => [url.value, platformTypeName.value, accessToken.value],\n ([newUrl, newPlatform, newToken], [oldUrl, oldPlatform, oldToken]) => {\n // 只有当值真正发生变化时才更新\n if (\n newUrl !== oldUrl ||\n newPlatform !== oldPlatform ||\n newToken !== oldToken\n ) {\n // 更新播放器组件\n updatePlayerComponent();\n }\n },\n);\n\n/**\n * 平台类型映射表,提升可维护性\n */\nconst PLATFORM_COMPONENTS = {\n 云智眼: YunzhiyanPlayer,\n 萤石云: YsPlayer,\n 天翼云: CtyunPlayer,\n // hls: XgPlayer,\n} as const;\n\n/**\n * 计算当前播放器组件类型\n * 使用计算属性避免重复计算,提升性能\n */\nconst playerComponent = computed(() => {\n // 优先使用指定的平台类型\n if (platformTypeName.value) {\n return (\n PLATFORM_COMPONENTS[\n platformTypeName.value as keyof typeof PLATFORM_COMPONENTS\n ] || EasyPlayer\n );\n }\n\n // 未指定平台类型时,根据URL自动判断\n if (!url.value) {\n return null;\n }\n\n // 检查协议支持性\n if (!isSupportedProtocol(url.value)) {\n return null;\n }\n\n // ezopen协议使用萤石云播放器\n if (url.value.includes(\"ezopen\")) {\n return YsPlayer;\n }\n\n // 根据视频类型选择播放器\n const videoType = getVideoType(url.value);\n return videoType ? EasyPlayer : null;\n});\n\n/**\n * 计算错误状态信息\n * 统一错误状态管理,提升用户体验\n */\nconst errorState = computed(() => {\n // 云智眼平台不需要URL\n if (\n platformTypeName.value === \"云智眼\" ||\n platformTypeName.value === \"天翼云\"\n ) {\n return null;\n }\n\n // 检查URL是否存在\n if (!url.value) {\n return {\n type: \"no-url\",\n message: \"无视频地址\",\n };\n }\n // 检查协议支持性\n if (!isSupportedProtocol(url.value)) {\n return {\n type: \"unsupported-protocol\",\n message: \"不支持该视频协议\",\n };\n }\n\n // 萤石云平台需要accessToken\n if (\n (platformTypeName.value === \"萤石云\" || url.value.includes(\"ezopen\")) &&\n !accessToken.value\n ) {\n return {\n type: \"no-token\",\n message: \"缺少访问令牌\",\n };\n }\n\n return null;\n});\n\n/**\n * 计算是否显示播放器组件\n */\nconst shouldShowPlayer = computed(() => {\n return !errorState.value && playerComponent.value;\n});\n\n/**\n * 暴露的方法,增加错误处理\n */\ndefineExpose({\n /**\n * 播放视频\n * @param options 播放选项\n */\n play(options?: any) {\n if (!compRef.value) {\n props.debug && console.warn(\"[TzjPlayer] 播放器组件未初始化\");\n return;\n }\n compRef.value?.play(options);\n },\n\n /**\n * 销毁播放器\n */\n destroy() {\n if (!compRef.value) {\n props.debug && console.warn(\"[TzjPlayer] 播放器组件未初始化\");\n return;\n }\n compRef.value?.destroy();\n },\n\n /**\n * 调整播放器尺寸\n */\n resize() {\n if (!compRef.value) {\n props.debug && console.warn(\"[TzjPlayer] 播放器组件未初始化\");\n return;\n }\n compRef.value?.resize();\n },\n\n /**\n * 获取当前播放器类型\n */\n getPlayerType() {\n return playerComponent.value?.name || null;\n },\n\n /**\n * 获取错误状态\n */\n getErrorState() {\n return errorState.value;\n },\n});\n</script>\n\n<template>\n <div class=\"i-tzj-player\">\n <!-- 头部标题栏 -->\n <div v-if=\"areaName || deviceSerial\" class=\"i-tzj-player__header\">\n <i class=\"iconfont icon-shexiangtou4\" />\n <span>{{ areaName || deviceSerial }}</span>\n </div>\n\n <!-- 错误状态显示 -->\n <ErrorPage\n v-if=\"errorState\"\n :video-name=\"areaName || deviceSerial\"\n :message=\"errorState.message\"\n />\n\n <!-- 播放器组件 -->\n <component\n :is=\"playerComponent\"\n v-else-if=\"shouldShowPlayer\"\n ref=\"compRef\"\n v-bind=\"props\"\n />\n\n <!-- 无可用播放器 -->\n <ErrorPage v-else :video-name=\"areaName || deviceSerial\" message=\"无信号\" />\n </div>\n</template>\n"],"names":["YunzhiyanPlayer","YsPlayer","CtyunPlayer","EasyPlayer","_openBlock","_createElementBlock","_createCommentVNode","areaName","deviceSerial","_createElementVNode","_toDisplayString","_createBlock","ErrorPage","_Fragment","_resolveDynamicComponent","_mergeProps","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAA,MAAM,KAAQ,GAAA,OAAA;AACd,IAAA,MAAM,EAAE,GAAK,EAAA,gBAAA,EAAkB,WAAY,EAAA,GAAI,OAAO,KAAK,CAAA;AAE3D,IAAA,MAAM,UAAU,UAAW,EAAA;AAG3B,IAAM,MAAA,qBAAA,GAAwB,SAAS,MAAM;;AAE3C,MAAA,IAAI,QAAQ,KAAO,EAAA;AACjB,QAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,OAAA,CAAQ,OAAM,OAAd,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,CAAA;AAAA;AACF,OACC,GAAG,CAAA;AAGN,IAAA,KAAA;AAAA,MACE,MAAM,CAAC,GAAA,CAAI,OAAO,gBAAiB,CAAA,KAAA,EAAO,YAAY,KAAK,CAAA;AAAA,MAC3D,CAAC,CAAC,MAAA,EAAQ,WAAa,EAAA,QAAQ,GAAG,CAAC,MAAA,EAAQ,WAAa,EAAA,QAAQ,CAAM,KAAA;AAEpE,QAAA,IACE,MAAW,KAAA,MAAA,IACX,WAAgB,KAAA,WAAA,IAChB,aAAa,QACb,EAAA;AAEA,UAAsB,qBAAA,EAAA;AAAA;AACxB;AACF,KACF;AAKA,IAAA,MAAM,mBAAsB,GAAA;AAAA,MAC1B,kBAAK,EAAAA,WAAA;AAAA,MACL,kBAAK,EAAAC,WAAA;AAAA,MACL,kBAAK,EAAAC;AAAA;AAAA,K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AAA;AAAA;AAAA,aAAA;AAAA;;;yBAIf,EAAAV,kBAAA;AAAA,UAAyEQ,QAAA;AAAA,UAAA,EAAA,KAAA,CAAA,EAAA;AAAA,UAAA;AAAA,YADzEP,mBAAe,wCAAA,CAAA;AAAA,YACfU,YAAyEJ,WAAA,EAAA;AAAA,cAAtD,YAAA,EAAYL,IAAQ,CAAA,QAAA,IAAIC,IAAY,CAAA,YAAA;AAAA,cAAE,OAAQ,EAAA;AAAA;;;;;;;;;;;;"}
|
|
@@ -62,18 +62,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
62
|
type: StringConstructor;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
|
-
}>, {
|
|
66
|
-
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
-
videoName: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
message: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
};
|
|
75
|
-
}>> & Readonly<{}> & {}>;
|
|
76
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
66
|
videoName: {
|
|
78
67
|
type: StringConstructor;
|
|
79
68
|
default: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, shallowRef, ref, watch, onMounted, onBeforeUnmount, nextTick, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, shallowRef, ref, watch, onMounted, onBeforeUnmount, nextTick, openBlock, createElementBlock, createElementVNode, unref, createBlock, createCommentVNode } from 'vue';
|
|
2
2
|
import { useElementSize } from '@vueuse/core';
|
|
3
3
|
import './errorPage.vue.mjs';
|
|
4
4
|
import { uuid } from './tzj-player.mjs';
|
|
@@ -6,10 +6,6 @@ import _sfc_main$1 from './errorPage.vue2.mjs';
|
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
-
const _hoisted_1 = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "i-tzj-easyPlayer__top"
|
|
12
|
-
};
|
|
13
9
|
const PLAYER_TEMPLATE = "5f295a9341a74d439b5d69374c90d501";
|
|
14
10
|
const maxReconnectAttempts = 3;
|
|
15
11
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -211,40 +207,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
207
|
class: "i-tzj-ysplayer"
|
|
212
208
|
},
|
|
213
209
|
[
|
|
214
|
-
createCommentVNode(" \u64AD\u653E\u5668\u9876\u90E8\u663E\u793A\u533A\u57DF(\u8BBE\u5907)\u540D\u79F0 "),
|
|
215
|
-
_ctx.areaName ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
216
|
-
_cache[0] || (_cache[0] = createElementVNode(
|
|
217
|
-
"i",
|
|
218
|
-
{ class: "iconfont icon-shexiangtou4" },
|
|
219
|
-
null,
|
|
220
|
-
-1
|
|
221
|
-
/* CACHED */
|
|
222
|
-
)),
|
|
223
|
-
createElementVNode(
|
|
224
|
-
"span",
|
|
225
|
-
null,
|
|
226
|
-
toDisplayString(_ctx.areaName),
|
|
227
|
-
1
|
|
228
|
-
/* TEXT */
|
|
229
|
-
)
|
|
230
|
-
])) : createCommentVNode("v-if", true),
|
|
231
210
|
createElementVNode(
|
|
232
211
|
"div",
|
|
233
212
|
{
|
|
234
213
|
ref_key: "containerRef",
|
|
235
214
|
ref: containerRef,
|
|
236
215
|
class: "i-tzj-ysplayer",
|
|
237
|
-
style:
|
|
238
|
-
height: _ctx.areaName ? "calc(100% - 32px)" : "100%",
|
|
239
|
-
position: "relative"
|
|
240
|
-
}])
|
|
216
|
+
style: { "width": "100%", "height": "100%", "position": "relative" }
|
|
241
217
|
},
|
|
242
218
|
null,
|
|
243
|
-
|
|
244
|
-
/*
|
|
219
|
+
512
|
|
220
|
+
/* NEED_PATCH */
|
|
245
221
|
),
|
|
246
222
|
unref(errorMsg) ? (openBlock(), createBlock(_sfc_main$1, {
|
|
247
|
-
key:
|
|
223
|
+
key: 0,
|
|
248
224
|
"video-name": _ctx.areaName || _ctx.deviceSerial,
|
|
249
225
|
message: unref(errorMsg)
|
|
250
226
|
}, null, 8, ["video-name", "message"])) : createCommentVNode("v-if", true)
|