tencent.jquery.pix.component 1.0.53
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/components/banner/banner.js +450 -0
- package/components/banner/banner.scss +46 -0
- package/components/config.js +23 -0
- package/components/list/list.js +212 -0
- package/components/tips/tipv2.js +557 -0
- package/components/utils/env.js +7 -0
- package/components/utils/utils.js +65 -0
- package/components/video/resources/images/control-bg.png +0 -0
- package/components/video/resources/images/exit-full-screen.png +0 -0
- package/components/video/resources/images/full-screen.png +0 -0
- package/components/video/resources/images/mute.png +0 -0
- package/components/video/resources/images/origin-play.png +0 -0
- package/components/video/resources/images/pause.png +0 -0
- package/components/video/resources/images/play.png +0 -0
- package/components/video/resources/images/replay.png +0 -0
- package/components/video/resources/images/volume.png +0 -0
- package/components/video/videocss.scss +497 -0
- package/components/video/videohtml.js +85 -0
- package/components/video/videoplayer.js +355 -0
- package/components/waterfall/waterfall.js +393 -0
- package/index.js +10 -0
- package/package.json +16 -0
- package/readme.md +15 -0
- package/utils/utils.js +16 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
.myplayer-shrink1 {
|
|
2
|
+
flex-shrink: 1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.myplayer-grow1 {
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
flex-basis: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.myplayer-container {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
transform-origin: left center;
|
|
15
|
+
transform: scaleY(1);
|
|
16
|
+
background-color: #000;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.myplayer-container.myplayer-full-screen {
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
// width: 71%;
|
|
25
|
+
// height: 68%;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
z-index: 99999;
|
|
29
|
+
transform: translate3d(0, 0, 0);
|
|
30
|
+
// margin-left: 15%;
|
|
31
|
+
// margin-top: 22%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.myplayer-container,
|
|
35
|
+
.myplayer-container * {
|
|
36
|
+
display: flex;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
outline: none;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
font-size: 100%;
|
|
43
|
+
font-weight: normal;
|
|
44
|
+
line-height: 1;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
vertical-align: middle;
|
|
47
|
+
user-select: none;
|
|
48
|
+
-webkit-user-select: none;
|
|
49
|
+
-webkit-text-size-adjust: none;
|
|
50
|
+
-webkit-tap-highlight-color: transparent;
|
|
51
|
+
-webkit-touch-callout: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.myplayer-container video,
|
|
55
|
+
.temp-div {
|
|
56
|
+
position: relative;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
object-fit: contain;
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.myplayer-container .myplayer-video-mask {
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
z-index: 2;
|
|
70
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.myplayer-container .myplayer-video-mask.myplayer-transparent {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.myplayer-container .myplayer-btn-big-play {
|
|
80
|
+
width: 2rem;
|
|
81
|
+
height: 2rem;
|
|
82
|
+
background: url(resources/images/origin-play.png) no-repeat;
|
|
83
|
+
background-size: 100% 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.myplayer-container.myplayer-full-screen .myplayer-btn-big-play {
|
|
87
|
+
width: 2.5rem;
|
|
88
|
+
height: 2.5rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.myplayer-container .myplayer-btn-big-play.myplayer-transparent {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.myplayer-container .myplayer-top {
|
|
96
|
+
position: absolute;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 0.86rem;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
z-index: 3;
|
|
102
|
+
padding: 0 0.34rem;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
justify-content: start;
|
|
105
|
+
align-items: center;
|
|
106
|
+
background: linear-gradient(
|
|
107
|
+
rgba(0, 0, 0, 0.6),
|
|
108
|
+
rgba(0, 0, 0, 0.4),
|
|
109
|
+
rgba(0, 0, 0, 0.1),
|
|
110
|
+
rgba(0, 0, 0, 0)
|
|
111
|
+
);
|
|
112
|
+
opacity: 1;
|
|
113
|
+
transform: translateY(0);
|
|
114
|
+
transition: transform 0.5s, opacity 0.5s;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.myplayer-container .myplayer-top.myplayer-transparent {
|
|
118
|
+
transform: translateY(-80%);
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.myplayer-container .myplayer-type {
|
|
123
|
+
width: auto;
|
|
124
|
+
height: 0.25rem;
|
|
125
|
+
font-size: 0.18rem;
|
|
126
|
+
line-height: 0.25rem;
|
|
127
|
+
color: #e5fd0e;
|
|
128
|
+
padding: 0 0.14rem;
|
|
129
|
+
margin-right: 0.12rem;
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
border: 0.01rem #e5fd0e solid;
|
|
132
|
+
border-radius: 0.04rem;
|
|
133
|
+
flex-shrink: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.myplayer-container .myplayer-title {
|
|
137
|
+
width: 0;
|
|
138
|
+
flex-grow: 1;
|
|
139
|
+
font-size: 0.24rem;
|
|
140
|
+
color: #fff;
|
|
141
|
+
line-height: 0.25rem;
|
|
142
|
+
height: 0.25rem;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.myplayer-container .myplayer-bottom {
|
|
149
|
+
position: absolute;
|
|
150
|
+
width: 100%;
|
|
151
|
+
// height: 0.86rem;
|
|
152
|
+
bottom: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
z-index: 3;
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
background: linear-gradient(
|
|
157
|
+
rgba(0, 0, 0, 0),
|
|
158
|
+
rgba(0, 0, 0, 0.1),
|
|
159
|
+
rgba(0, 0, 0, 0.4),
|
|
160
|
+
rgba(0, 0, 0, 0.6)
|
|
161
|
+
);
|
|
162
|
+
opacity: 1;
|
|
163
|
+
transform: translateY(0);
|
|
164
|
+
transition: transform 0.5s, opacity 0.5s;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.myplayer-container .myplayer-bottom.myplayer-transparent {
|
|
168
|
+
transform: translateY(80%);
|
|
169
|
+
opacity: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.myplayer-container .myplayer-control {
|
|
173
|
+
position: relative;
|
|
174
|
+
width: 100%;
|
|
175
|
+
// height: 0.6rem;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// .myplayer-contain .myplayer-control>* {
|
|
180
|
+
// margin: 0 0.1rem;
|
|
181
|
+
// }
|
|
182
|
+
.myplayer-container .myplayer-btn-play,.myplayer-container .myplayer-btn-pause {
|
|
183
|
+
background-position: center center;
|
|
184
|
+
background-size: 0.6rem 0.75rem;
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
width: 1.75rem;
|
|
187
|
+
height: 0.75rem;
|
|
188
|
+
}
|
|
189
|
+
.myplayer-container .myplayer-btn-play {
|
|
190
|
+
background-image: url(resources/images/play.png);
|
|
191
|
+
background-repeat: no-repeat;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.myplayer-container .myplayer-btn-pause {
|
|
195
|
+
background-image: url(resources/images/pause.png);
|
|
196
|
+
background-repeat: no-repeat;
|
|
197
|
+
}
|
|
198
|
+
// 全屏时,尺寸进行变更
|
|
199
|
+
.myplayer-container .myplayer-bottom.myplayer-full-screen .myplayer-btn-play,.myplayer-container .myplayer-bottom.myplayer-full-screen .myplayer-btn-pause {
|
|
200
|
+
width: 1.95rem;
|
|
201
|
+
}
|
|
202
|
+
// 全屏时扩大缩小位置变更
|
|
203
|
+
.myplayer-bottom.myplayer-full-screen .myplayer-control .myplayer-btn-full-screen, .myplayer-bottom.myplayer-full-screen .myplayer-control .myplayer-btn-exit-full-screen{
|
|
204
|
+
right:0rem;
|
|
205
|
+
}
|
|
206
|
+
// 缩小时的缩小图标样式
|
|
207
|
+
.myplayer-bottom.myplayer-full-screen .myplayer-control .myplayer-btn-exit-full-screen div{
|
|
208
|
+
width: 0.72rem;
|
|
209
|
+
height: 0.65rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.myplayer-container .myplayer-btn-replay {
|
|
213
|
+
width: 0.53rem;
|
|
214
|
+
height: 0.52rem;
|
|
215
|
+
background: url(resources/images/replay.png) no-repeat;
|
|
216
|
+
background-size: 100% 100%;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.myplayer-container .myplayer-playtime,
|
|
220
|
+
.myplayer-container .myplayer-totaltime,
|
|
221
|
+
.myplayer-container .myplayer-divide {
|
|
222
|
+
font-size: 0.36rem;
|
|
223
|
+
line-height: 0.36rem;
|
|
224
|
+
color: #fff;
|
|
225
|
+
vertical-align: middle;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.myplayer-container .myplayer-playtime {
|
|
229
|
+
margin-left: 0.2rem;
|
|
230
|
+
}
|
|
231
|
+
.myplayer-container .myplayer-divide {
|
|
232
|
+
margin: 0 0.1rem;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.myplayer-container .myplayer-progress {
|
|
236
|
+
position: relative;
|
|
237
|
+
width: 0;
|
|
238
|
+
height: 0.2rem;
|
|
239
|
+
flex-grow: 1;
|
|
240
|
+
border-radius: 0.06rem;
|
|
241
|
+
margin-top: 0.03rem;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.myplayer-container .myplayer-progress-bg,
|
|
245
|
+
.myplayer-container .myplayer-subprogress {
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 50%;
|
|
248
|
+
left: 0;
|
|
249
|
+
height: 0.1rem;
|
|
250
|
+
// margin-top: -0.03rem;
|
|
251
|
+
// border-radius: 0.06rem;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.myplayer-container .myplayer-progress-bg {
|
|
255
|
+
width: 100%;
|
|
256
|
+
background-color: #8d8f91;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.myplayer-container .myplayer-subprogress {
|
|
260
|
+
width: 0;
|
|
261
|
+
background-color: #ff6429;
|
|
262
|
+
/*transition: width 1s linear;*/
|
|
263
|
+
max-width: 100%;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.myplayer-container .myplayer-subprogress div {
|
|
267
|
+
content: "";
|
|
268
|
+
position: absolute;
|
|
269
|
+
width: 0.14rem;
|
|
270
|
+
height: 0.14rem;
|
|
271
|
+
top: 50%;
|
|
272
|
+
right: -0.07rem;
|
|
273
|
+
margin-top: -0.07rem;
|
|
274
|
+
transform: rotate(45deg);
|
|
275
|
+
background-color: #e5fd0e;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.myplayer-container .myplayer-resolution {
|
|
279
|
+
position: relative;
|
|
280
|
+
// height: 0.2rem;
|
|
281
|
+
width: auto;
|
|
282
|
+
margin: 0 0.3rem;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.myplayer-container .myplayer-resolution > text {
|
|
286
|
+
font-size: 0.36rem;
|
|
287
|
+
line-height: 0.36rem;
|
|
288
|
+
color: #fff;
|
|
289
|
+
vertical-align: middle;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.myplayer-container .myplayer-resolutionlist {
|
|
293
|
+
display: none;
|
|
294
|
+
position: absolute;
|
|
295
|
+
width: auto;
|
|
296
|
+
height: auto;
|
|
297
|
+
left: 50%;
|
|
298
|
+
transform: translateX(-50%);
|
|
299
|
+
bottom: 160%;
|
|
300
|
+
padding: 0.08rem;
|
|
301
|
+
border-radius: 0.1rem;
|
|
302
|
+
box-sizing: border-box;
|
|
303
|
+
background-color: #1c1c1c;
|
|
304
|
+
flex-direction: column;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.myplayer-container .myplayer-resolutionlist text {
|
|
308
|
+
font-size: 0.2rem;
|
|
309
|
+
color: #fff;
|
|
310
|
+
line-height: 0.38rem;
|
|
311
|
+
vertical-align: middle;
|
|
312
|
+
padding: 0 0.23rem;
|
|
313
|
+
box-sizing: border-box;
|
|
314
|
+
border-radius: 0.1rem;
|
|
315
|
+
padding: 0 0.32rem;
|
|
316
|
+
flex-grow: 1;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.myplayer-container .myplayer-resolutionlist text.on {
|
|
320
|
+
background-color: #323232;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.myplayer-container .myplayer-volume {
|
|
324
|
+
position: relative;
|
|
325
|
+
width: 0.34rem;
|
|
326
|
+
height: 0.23rem;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.myplayer-container .myplayer-volume-icon,
|
|
330
|
+
.myplayer-container .myplayer-volume-off-icon {
|
|
331
|
+
position: absolute;
|
|
332
|
+
width: 100%;
|
|
333
|
+
height: 100%;
|
|
334
|
+
top: 0;
|
|
335
|
+
left: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.myplayer-container .myplayer-volume-icon {
|
|
339
|
+
background-position: -1.5rem -0.53rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.myplayer-container .myplayer-volume-off-icon {
|
|
343
|
+
background-position: -1.53rem -0.1rem;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.myplayer-container .myplayer-volume-rate {
|
|
347
|
+
position: absolute;
|
|
348
|
+
width: 0.5rem;
|
|
349
|
+
height: 1.4rem;
|
|
350
|
+
bottom: 160%;
|
|
351
|
+
left: 50%;
|
|
352
|
+
margin-left: -0.25rem;
|
|
353
|
+
padding: 0.08rem 0 0.1rem;
|
|
354
|
+
border-radius: 0.1rem;
|
|
355
|
+
box-sizing: border-box;
|
|
356
|
+
background-color: #1c1c1c;
|
|
357
|
+
flex-direction: column;
|
|
358
|
+
align-items: center;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.myplayer-container .myplayer-volume-rate text {
|
|
362
|
+
width: 100%;
|
|
363
|
+
line-height: 0.28rem;
|
|
364
|
+
margin-bottom: 0.04rem;
|
|
365
|
+
font-size: 0.18rem;
|
|
366
|
+
text-align: center;
|
|
367
|
+
vertical-align: middle;
|
|
368
|
+
color: #fff;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.myplayer-container .myplayer-volume-line {
|
|
372
|
+
position: relative;
|
|
373
|
+
width: 0.2rem;
|
|
374
|
+
height: 0;
|
|
375
|
+
flex-grow: 1;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.myplayer-container .myplayer-volume-linebg,
|
|
379
|
+
.myplayer-container .myplayer-volume-subline {
|
|
380
|
+
position: absolute;
|
|
381
|
+
width: 0.06rem;
|
|
382
|
+
height: 100%;
|
|
383
|
+
border-radius: 0.06rem;
|
|
384
|
+
bottom: 0;
|
|
385
|
+
left: 50%;
|
|
386
|
+
margin-left: -0.03rem;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.myplayer-container .myplayer-volume-linebg {
|
|
390
|
+
background-color: #c3c3c3;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.myplayer-container .myplayer-volume-subline {
|
|
394
|
+
background-color: #e5fd0e;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.myplayer-container .myplayer-volume-subline div {
|
|
398
|
+
content: "";
|
|
399
|
+
position: absolute;
|
|
400
|
+
width: 0.14rem;
|
|
401
|
+
height: 0.14rem;
|
|
402
|
+
left: 50%;
|
|
403
|
+
top: -0.07rem;
|
|
404
|
+
margin-left: -0.08rem;
|
|
405
|
+
transform: rotate(45deg);
|
|
406
|
+
background-color: #e5fd0e;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.myplayer-control .myplayer-btn-full-screen,
|
|
410
|
+
.myplayer-control .myplayer-btn-exit-full-screen {
|
|
411
|
+
background: none;
|
|
412
|
+
width: 2rem;
|
|
413
|
+
height: 1.2rem;
|
|
414
|
+
position: absolute;
|
|
415
|
+
display: flex;
|
|
416
|
+
justify-content: center;
|
|
417
|
+
align-items: center;
|
|
418
|
+
right: -0.4rem;
|
|
419
|
+
top: -0.25rem;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.myplayer-control .myplayer-btn-full-screen div {
|
|
423
|
+
width: 0.62rem;
|
|
424
|
+
height: 0.57rem;
|
|
425
|
+
background: url(resources/images/full-screen.png) no-repeat;
|
|
426
|
+
background-size: 100% 100%;
|
|
427
|
+
background-repeat: no-repeat;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.myplayer-control .myplayer-btn-exit-full-screen div {
|
|
431
|
+
width: 0.52rem;
|
|
432
|
+
height: 0.5rem;
|
|
433
|
+
background: url(resources/images/exit-full-screen.png) no-repeat;
|
|
434
|
+
background-size: 100% 100%;
|
|
435
|
+
background-repeat: no-repeat;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.myplayer-top .myplay-back {
|
|
439
|
+
width: 0.8rem;
|
|
440
|
+
height: 100%;
|
|
441
|
+
margin-left: -0.34rem;
|
|
442
|
+
justify-content: center;
|
|
443
|
+
align-items: center;
|
|
444
|
+
}
|
|
445
|
+
.myplayer-top .myplay-back div {
|
|
446
|
+
width: 0.26rem;
|
|
447
|
+
height: 0.26rem;
|
|
448
|
+
margin-left: 0.15rem;
|
|
449
|
+
border: 0.02rem rgba(255, 255, 255, 0.6) solid;
|
|
450
|
+
transform: rotate(-45deg);
|
|
451
|
+
border-bottom-width: 0;
|
|
452
|
+
border-right-width: 0;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.full-screen-mask {
|
|
456
|
+
width: 100%;
|
|
457
|
+
height: 100%;
|
|
458
|
+
position: fixed;
|
|
459
|
+
background: rgba(0, 0, 0, 0.5);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.myplayer-btns {
|
|
463
|
+
margin: 0.35rem 0.15rem 0.35rem 0.2rem;
|
|
464
|
+
justify-content: space-between;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.myplayer-btns-left {
|
|
468
|
+
align-items: center;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.myplayer-btns-right {
|
|
472
|
+
align-items: center;
|
|
473
|
+
position: relative;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.myplayer-video-cover {
|
|
477
|
+
width: 100%;
|
|
478
|
+
height: 100%;
|
|
479
|
+
position: absolute;
|
|
480
|
+
z-index: 2;
|
|
481
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
482
|
+
background-image: url(resources/images/origin-play.png);
|
|
483
|
+
background-size: 2.16rem 2.16rem;
|
|
484
|
+
background-position: center;
|
|
485
|
+
background-repeat: no-repeat;
|
|
486
|
+
}
|
|
487
|
+
.myplayer-video-preview {
|
|
488
|
+
left:0;
|
|
489
|
+
top:0;
|
|
490
|
+
width: 100%;
|
|
491
|
+
height: 100%;
|
|
492
|
+
position: absolute;
|
|
493
|
+
z-index: 1;
|
|
494
|
+
background-size: 100% 100%;
|
|
495
|
+
background-repeat: no-repeat;
|
|
496
|
+
background-position: center;
|
|
497
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const html = `
|
|
2
|
+
<div class="myplayer-video-preview"></div>
|
|
3
|
+
<div class="myplayer-video-cover"></div>
|
|
4
|
+
|
|
5
|
+
<!-- 以下为播放器UI -->
|
|
6
|
+
<div class="myplayer-container myplayer-grow1">
|
|
7
|
+
<!-- <video src=""></video>-->
|
|
8
|
+
<div class="myplayer-video-mask myplayer-transparent">
|
|
9
|
+
<div class="myplayer-btn-big-play myplayer-transparent"></div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="myplayer-top myplayer-transparent">
|
|
12
|
+
<text class="myplayer-title"></text>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="myplayer-bottom myplayer-transparent">
|
|
15
|
+
<div class="myplayer-control">
|
|
16
|
+
<div class="myplayer-grow1" style="margin: 0">
|
|
17
|
+
<!-- 进度条 -->
|
|
18
|
+
<div class="myplayer-progress" draggable="true">
|
|
19
|
+
<div class="myplayer-progress-bg"></div>
|
|
20
|
+
<div class="myplayer-subprogress">
|
|
21
|
+
<!-- <div></div> -->
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="myplayer-grow1 myplayer-btns myplayer-shrink1">
|
|
26
|
+
<div class="myplayer-btns-left">
|
|
27
|
+
<!-- 播放按钮 -->
|
|
28
|
+
<div class="myplayer-btn-play" style="display: none;"></div>
|
|
29
|
+
<!-- 暂停按钮 -->
|
|
30
|
+
<div class="myplayer-btn-pause"></div>
|
|
31
|
+
<!-- 播放时间 -->
|
|
32
|
+
<text class="myplayer-playtime">00:00</text>
|
|
33
|
+
<text class="myplayer-divide">/</text>
|
|
34
|
+
<!-- 总时间 -->
|
|
35
|
+
<text class="myplayer-totaltime">00:00</text>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="myplayer-btns-right">
|
|
38
|
+
<!-- 重播按钮 -->
|
|
39
|
+
<!-- <div class="myplayer-btn-replay"></div> -->
|
|
40
|
+
<!-- 分辨率 -->
|
|
41
|
+
<!-- <div class="myplayer-resolution">
|
|
42
|
+
<text class="myplayer-media-resolution">标清</text>
|
|
43
|
+
<div class="myplayer-resolutionlist">
|
|
44
|
+
<text class="myplayer-sd on">标清</text>
|
|
45
|
+
<text class="myplayer-hd">高清</text>
|
|
46
|
+
</div>
|
|
47
|
+
</div> -->
|
|
48
|
+
<!-- 音量 -->
|
|
49
|
+
<!-- <div class="myplayer-volume" style="display:none">
|
|
50
|
+
<div class="myplayer-volume-icon"></div>
|
|
51
|
+
<div class="myplayer-volume-off-icon" style="display: none;"></div>
|
|
52
|
+
<div class="myplayer-volume-rate" style="display: none;">
|
|
53
|
+
<text>50</text>
|
|
54
|
+
<div class="myplayer-volume-line" draggable="true">
|
|
55
|
+
<div class="myplayer-volume-linebg"></div>
|
|
56
|
+
<div class="myplayer-volume-subline" style="height: 50%;"><div></div></div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div> -->
|
|
60
|
+
<!-- 全屏/缩小全屏 -->
|
|
61
|
+
<div class="myplayer-btn-full-screen">
|
|
62
|
+
<div></div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="myplayer-btn-exit-full-screen" style="display: none;">
|
|
65
|
+
<div></div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<!-- 以下为播放器UI 临时变量 -->
|
|
73
|
+
<!--<div class="variable">-->
|
|
74
|
+
<!-- <div class="playerMediaStatus" style="display:none;">1</div>-->
|
|
75
|
+
<!-- <div class="isShowContrilNav" style="display:none;">0</div>-->
|
|
76
|
+
<!-- <div class="hideControlTimeout" style="display:none;">0</div>-->
|
|
77
|
+
<!-- <div class="playTimeTimeout" style="display:none;">0</div>-->
|
|
78
|
+
<!-- <div class="clickProgress" style="display:none;">0</div>-->
|
|
79
|
+
<!-- <div class="isMax" style="display:none;">0</div>-->
|
|
80
|
+
<!-- <div class="autohidenavhandle" style="display:none;"></div>-->
|
|
81
|
+
<!-- <div class="clickvolumerate" style="display:none;">0</div>-->
|
|
82
|
+
<!--</div>-->
|
|
83
|
+
`;
|
|
84
|
+
|
|
85
|
+
export default html;
|