@viewlift/player-backup 0.0.87 → 0.0.90
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/cjs/autoNextVideo-815419cb.js +1 -0
- package/cjs/bundle.css +186 -264
- package/cjs/caption-settings-6e301004.js +1 -0
- package/cjs/features-fd1e9785.js +1 -0
- package/cjs/generic-81b1be69.js +1 -0
- package/cjs/icons-51594f89.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/keyboardShortcuts-1afbf18c.js +1 -0
- package/cjs/multicam-1647c428.js +1 -0
- package/cjs/multicamv2-f48d95fe.js +1 -0
- package/cjs/mwebPotraitTray-a3a2715b.js +1 -0
- package/cjs/nextEpisodeButton-cc80609a.js +1 -0
- package/cjs/playlist-a550a735.js +1 -0
- package/cjs/renditions-c3ea26e8.js +1 -0
- package/cjs/resolution-51b38a3e.js +1 -0
- package/cjs/series-6178964e.js +1 -0
- package/cjs/series-v2-a265ff17.js +1 -0
- package/cjs/settings-icon-b350b587.js +1 -0
- package/cjs/skin-14da56f6.js +1 -0
- package/cjs/skin-286f52db.js +1 -0
- package/cjs/skin-534810ae.js +1 -0
- package/cjs/skin-84083352.js +1 -0
- package/cjs/skin-9eba464b.js +1 -0
- package/cjs/skin-b703ef26.js +1 -0
- package/cjs/skin-f225a42e.js +1 -0
- package/cjs/util-ce8a4138.js +1 -0
- package/cjs/videoSelector-a4c00f50.js +1 -0
- package/esm/autoNextVideo-89ede579.js +1 -0
- package/esm/bundle.css +186 -264
- package/esm/caption-settings-3f6b6163.js +1 -0
- package/esm/features-05101ce6.js +1 -0
- package/esm/generic-4a3c0d6b.js +1 -0
- package/esm/icons-f5378bf3.js +1 -0
- package/esm/index.js +1 -1
- package/esm/keyboardShortcuts-7fa108ec.js +1 -0
- package/esm/multicam-bc0aea8a.js +1 -0
- package/esm/multicamv2-fb91fa98.js +1 -0
- package/esm/mwebPotraitTray-0ff12233.js +1 -0
- package/esm/nextEpisodeButton-ec95417f.js +1 -0
- package/esm/playlist-5d3f4436.js +1 -0
- package/esm/renditions-0fdb57ed.js +1 -0
- package/esm/resolution-57e7767a.js +1 -0
- package/esm/series-998e2084.js +1 -0
- package/esm/series-v2-9bcd5d54.js +1 -0
- package/esm/settings-icon-9bac9ef3.js +1 -0
- package/esm/skin-0aea7a56.js +1 -0
- package/esm/skin-665ec17e.js +1 -0
- package/esm/skin-80957fd8.js +1 -0
- package/esm/skin-851ea2fb.js +1 -0
- package/esm/skin-bb73c15b.js +1 -0
- package/esm/skin-d5510f70.js +1 -0
- package/esm/skin-fba79111.js +1 -0
- package/esm/util-9c9ee6b3.js +1 -0
- package/esm/videoSelector-8da87dd3.js +1 -0
- package/package.json +1 -1
- package/cjs/autoNextVideo-ad480d02.js +0 -1
- package/cjs/caption-settings-5db306f0.js +0 -1
- package/cjs/icons-fa0c9d5d.js +0 -1
- package/cjs/index-1be6475a.js +0 -1
- package/cjs/keyboardShortcuts-1ace4ed4.js +0 -1
- package/cjs/multicam-1ae5e9b1.js +0 -1
- package/cjs/multicamv2-251b4744.js +0 -1
- package/cjs/mwebPotraitTray-4a3da7cf.js +0 -1
- package/cjs/nextEpisodeButton-a312f56f.js +0 -1
- package/cjs/playlist-ded15f2a.js +0 -1
- package/cjs/series-0500be62.js +0 -1
- package/cjs/series-v2-f3ea79ac.js +0 -1
- package/cjs/settings-icon-5dc47ffb.js +0 -1
- package/cjs/skin-13893217.js +0 -1
- package/cjs/skin-6399cdb2.js +0 -1
- package/cjs/skin-8ac15f6f.js +0 -1
- package/cjs/skin-a2769cb4.js +0 -1
- package/cjs/videoSelector-c293d021.js +0 -1
- package/esm/autoNextVideo-cb876630.js +0 -1
- package/esm/caption-settings-1a10d2d7.js +0 -1
- package/esm/icons-09ae097a.js +0 -1
- package/esm/index-45cac6e6.js +0 -1
- package/esm/keyboardShortcuts-e1b36446.js +0 -1
- package/esm/multicam-bd870b4e.js +0 -1
- package/esm/multicamv2-31b64b7c.js +0 -1
- package/esm/mwebPotraitTray-438080ce.js +0 -1
- package/esm/nextEpisodeButton-5e72c16e.js +0 -1
- package/esm/playlist-28805214.js +0 -1
- package/esm/series-9358f00d.js +0 -1
- package/esm/series-v2-02c210b9.js +0 -1
- package/esm/settings-icon-9ab5b824.js +0 -1
- package/esm/skin-0d8bf06d.js +0 -1
- package/esm/skin-92c0edc1.js +0 -1
- package/esm/skin-9faabfe1.js +0 -1
- package/esm/skin-ae62e02f.js +0 -1
- package/esm/videoSelector-8bf074bd.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,t=require("./generic-81b1be69.js"),i=require("./util-ce8a4138.js"),o=require("./skin-84083352.js"),n=0,d=0,u=function e(i,n,u,s,c){d=i,i>u.length-1||t.load(n,u[i].id,s).then((function(e){o.highlightVideo(d),d++,t.setVideoIdx(d),r(e)})).catch((function(i){r(i),setTimeout((function(){o.highlightVideo(d),d++,t.setVideoIdx(d),e(d,n,u,s)}),5e3)}))},r=function(t){e&&e(t)};exports.autoPlayNext=function(s){clearTimeout(n);var c=null==s?void 0:s.content;e=null==s?void 0:s.cb;var h=s.playerId,l=sessionStorage.getItem("token");i.onVideoEnded(h,(function(){var e=t.getPlayer(h);0!==(null==e?void 0:e.currentTime())&&((d=t.getVideoIdx())>c.length-1||t.load(h,c[d].id,l).then((function(e){o.highlightVideo(d),t.setCurrentVideo(e.response),d++,t.setVideoIdx(d),r(e)})).catch((function(e){r(e),o.highlightVideo(d),d++,t.setVideoIdx(d),n=setTimeout((function(){t.isPaused(h)&&u(d,h,c,l)}),5e3)})))}))},exports.switchToNext=u;
|
package/cjs/bundle.css
CHANGED
|
@@ -1,187 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
.widget-selection{
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.widget-selector-icon{
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.widget-container{
|
|
27
|
-
position: absolute;
|
|
28
|
-
/* height: 528px; */
|
|
29
|
-
width: 350px;
|
|
30
|
-
right: -350px;
|
|
31
|
-
bottom: 0px;
|
|
32
|
-
/* background: #626262; */
|
|
33
|
-
|
|
34
|
-
/* background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important; */
|
|
35
|
-
background: #00000080 !important;
|
|
36
|
-
z-index: -1;
|
|
37
|
-
transition: right 300ms ease-out;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.widget-container.hidden{
|
|
41
|
-
visibility: hidden;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.widget-selection.open{
|
|
45
|
-
background: rgba(255, 255, 255, 0.20) !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.widget-selector-head{
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: self-start;
|
|
51
|
-
padding-top: 18px;
|
|
52
|
-
padding-left: 20px;
|
|
53
|
-
margin-bottom: 25px;
|
|
54
|
-
}
|
|
55
|
-
.widget-selector-title-container{
|
|
56
|
-
display: flex;
|
|
57
|
-
padding-bottom: 6px;
|
|
58
|
-
border-bottom: 2px solid #838996;
|
|
59
|
-
margin-left: 25px;
|
|
60
|
-
width: 80%;
|
|
61
|
-
margin-top: -1px;
|
|
62
|
-
}
|
|
63
|
-
.widget-selector-title{
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
user-select: none;
|
|
66
|
-
}
|
|
67
|
-
.widget-selector-title:not(:first-child){
|
|
68
|
-
margin-left: 35px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.widget-selector-title:hover{
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.widget-selector-cross-icon{
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
}
|
|
79
|
-
.widget-selector-content{
|
|
80
|
-
height: 74%;
|
|
81
|
-
overflow: scroll;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.widget-selector-content::-webkit-scrollbar {
|
|
85
|
-
display: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Hide scrollbar for IE, Edge and Firefox */
|
|
89
|
-
.widget-selector-content {
|
|
90
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
91
|
-
scrollbar-width: none; /* Firefox */
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.widget-selector-content-video{
|
|
95
|
-
height: 300px;
|
|
96
|
-
margin-bottom: 30px;
|
|
97
|
-
/* background: red; */
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.selected-tab{
|
|
101
|
-
text-decoration: underline;
|
|
102
|
-
text-underline-offset: 8px;
|
|
103
|
-
text-decoration-thickness: 2px
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.highlights{
|
|
107
|
-
height: 175px;
|
|
108
|
-
width: 309px;
|
|
109
|
-
margin: 0 auto !important;
|
|
110
|
-
background-repeat: no-repeat;
|
|
111
|
-
background-size: contain;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.parent{
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.highlights:hover{
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.info{
|
|
122
|
-
font-size: 15px;
|
|
123
|
-
padding: 7px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.highlights-container{
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-self: center;
|
|
129
|
-
align-items: center;
|
|
130
|
-
flex-direction: column;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.widget-selector-content #sr-widget{
|
|
134
|
-
padding: 0 18px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.vjs-poster {
|
|
138
|
-
display: inline-block;
|
|
139
|
-
vertical-align: middle;
|
|
140
|
-
background-repeat: no-repeat;
|
|
141
|
-
background-position: 50% 50%;
|
|
142
|
-
background-size: contain;
|
|
143
|
-
background-color: #000;
|
|
144
|
-
cursor: pointer;
|
|
145
|
-
margin: 0;
|
|
146
|
-
padding: 0;
|
|
147
|
-
position: absolute;
|
|
148
|
-
top: 0;
|
|
149
|
-
right: 0;
|
|
150
|
-
bottom: 0;
|
|
151
|
-
left: 0;
|
|
152
|
-
height: 100%;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
.video-js .vjs-tech{
|
|
157
|
-
outline: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.video-js.vjs-paused .vjs-big-play-button {
|
|
161
|
-
width: 90px;
|
|
162
|
-
height: 90px;
|
|
163
|
-
display: flex;
|
|
164
|
-
justify-content: center;
|
|
165
|
-
align-items: center;
|
|
166
|
-
border-radius: 50%;
|
|
167
|
-
position: absolute;
|
|
168
|
-
top: 0;
|
|
169
|
-
left: 0;
|
|
170
|
-
right: 0;
|
|
171
|
-
bottom: 0;
|
|
172
|
-
margin: auto;
|
|
173
|
-
font-size: 6em;
|
|
174
|
-
line-height: 1.3em;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@media(max-width:600px){
|
|
178
|
-
button.vjs-big-play-button {
|
|
179
|
-
width: 50px !important;
|
|
180
|
-
height: 50px !important;
|
|
181
|
-
font-size: 2.1rem !important;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
2
|
/* ADs */
|
|
186
3
|
.ima-ad-container {
|
|
187
4
|
top: 0em;
|
|
@@ -211,7 +28,7 @@ button.vjs-big-play-button {
|
|
|
211
28
|
/* IE10+ */
|
|
212
29
|
background: linear-gradient(to top, rgba(7, 20, 30, .7) 0%, rgba(7, 20, 30, 0) 100%);
|
|
213
30
|
/* W3C */
|
|
214
|
-
|
|
31
|
+
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#0007141E', endColorstr='#07141E', GradientType=0);
|
|
215
32
|
/* IE6-9 */
|
|
216
33
|
}
|
|
217
34
|
|
|
@@ -336,25 +153,50 @@ button.vjs-big-play-button {
|
|
|
336
153
|
.video-js.vjs-playing .bumpable-ima-ad-container {
|
|
337
154
|
margin-top: -4em;
|
|
338
155
|
}
|
|
156
|
+
/* Airplay */
|
|
157
|
+
|
|
158
|
+
.vjs-airplay-button .vjs-icon-placeholder {
|
|
159
|
+
background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
|
|
160
|
+
background-size: contain;
|
|
161
|
+
display: inline-block;
|
|
162
|
+
width: 15px;
|
|
163
|
+
height: 15px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.vjs-airplay-button:hover {
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.vjs-airplay-button:hover .vjs-icon-placeholder {
|
|
171
|
+
background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Airplay end */
|
|
339
175
|
/* Resolution Module */
|
|
340
176
|
|
|
341
|
-
.
|
|
177
|
+
.vjs-title-bar {
|
|
178
|
+
position: relative;
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.container {
|
|
342
184
|
position: relative;
|
|
343
185
|
display: flex;
|
|
344
186
|
align-items: center;
|
|
345
|
-
width:
|
|
187
|
+
width: 2rem;
|
|
346
188
|
justify-content: center;
|
|
347
189
|
}
|
|
348
190
|
|
|
349
|
-
|
|
191
|
+
#setting-icon:hover {
|
|
350
192
|
cursor: pointer;
|
|
351
193
|
}
|
|
352
194
|
|
|
353
|
-
.
|
|
195
|
+
.customFontHeading {
|
|
354
196
|
font-size: 13px;
|
|
355
197
|
}
|
|
356
198
|
|
|
357
|
-
.
|
|
199
|
+
.content {
|
|
358
200
|
opacity: 1;
|
|
359
201
|
display: flex;
|
|
360
202
|
position: absolute;
|
|
@@ -366,18 +208,13 @@ button.vjs-big-play-button {
|
|
|
366
208
|
bottom: 2.4rem;
|
|
367
209
|
right: -2rem;
|
|
368
210
|
border-radius: 5px;
|
|
369
|
-
z-index: 1;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.video-js .resolution{
|
|
373
|
-
min-width: 180px;
|
|
374
211
|
}
|
|
375
212
|
|
|
376
|
-
.
|
|
213
|
+
.rendition {
|
|
377
214
|
margin: 4px;
|
|
378
215
|
}
|
|
379
216
|
|
|
380
|
-
.
|
|
217
|
+
.rendition span {
|
|
381
218
|
background: brown;
|
|
382
219
|
color: #fff;
|
|
383
220
|
font-size: 9px;
|
|
@@ -387,37 +224,37 @@ button.vjs-big-play-button {
|
|
|
387
224
|
}
|
|
388
225
|
|
|
389
226
|
@media(max-width:500px) {
|
|
390
|
-
|
|
227
|
+
.rendition {
|
|
391
228
|
margin: 1px;
|
|
392
229
|
}
|
|
393
230
|
|
|
394
|
-
.
|
|
231
|
+
.title {
|
|
395
232
|
margin: 2px;
|
|
396
233
|
}
|
|
397
234
|
}
|
|
398
235
|
|
|
399
|
-
.
|
|
236
|
+
.hidden {
|
|
400
237
|
opacity: 0;
|
|
401
238
|
visibility: hidden;
|
|
402
|
-
transition: visibility
|
|
239
|
+
transition: visibility 1s, opacity 1s;
|
|
403
240
|
}
|
|
404
241
|
|
|
405
|
-
.
|
|
242
|
+
.rendition {
|
|
406
243
|
padding: 3px 1.6rem;
|
|
407
244
|
}
|
|
408
245
|
|
|
409
|
-
.
|
|
246
|
+
.selected {
|
|
410
247
|
font-weight: 900;
|
|
411
248
|
}
|
|
412
249
|
|
|
413
250
|
|
|
414
|
-
.
|
|
415
|
-
font-size:
|
|
251
|
+
.renditions {
|
|
252
|
+
font-size: 11px;
|
|
416
253
|
position: relative;
|
|
417
254
|
padding: 1px;
|
|
418
255
|
}
|
|
419
256
|
|
|
420
|
-
.
|
|
257
|
+
.rendition.selected::before {
|
|
421
258
|
content: "";
|
|
422
259
|
position: absolute;
|
|
423
260
|
width: 5px;
|
|
@@ -430,40 +267,40 @@ button.vjs-big-play-button {
|
|
|
430
267
|
transform: translateY(-50%);
|
|
431
268
|
}
|
|
432
269
|
|
|
433
|
-
.
|
|
270
|
+
.content::-webkit-scrollbar {
|
|
434
271
|
/* WebKit */
|
|
435
272
|
width: 0;
|
|
436
273
|
height: 0;
|
|
437
274
|
}
|
|
438
275
|
|
|
439
|
-
.
|
|
276
|
+
.disable-play-btn {
|
|
440
277
|
display: none !important;
|
|
441
278
|
pointer-events: none !important;
|
|
442
279
|
}
|
|
443
280
|
|
|
444
|
-
.
|
|
445
|
-
font-size:
|
|
281
|
+
.title {
|
|
282
|
+
font-size: 13px;
|
|
446
283
|
font-weight: 900;
|
|
447
284
|
padding: 3px 0px;
|
|
448
|
-
margin
|
|
285
|
+
margin: 4px;
|
|
449
286
|
}
|
|
450
287
|
|
|
451
|
-
.
|
|
288
|
+
.rendition:hover {
|
|
452
289
|
cursor: pointer;
|
|
453
290
|
}
|
|
454
291
|
|
|
455
|
-
.
|
|
292
|
+
.relative {
|
|
456
293
|
position: relative;
|
|
457
294
|
}
|
|
458
295
|
|
|
459
296
|
|
|
460
|
-
|
|
297
|
+
p.customFontHeading {
|
|
461
298
|
margin: 4px;
|
|
462
299
|
padding: 3px;
|
|
463
300
|
font-weight: 900;
|
|
464
301
|
}
|
|
465
302
|
|
|
466
|
-
.
|
|
303
|
+
.font {
|
|
467
304
|
font-size: 1rem;
|
|
468
305
|
width: 5rem;
|
|
469
306
|
}
|
|
@@ -477,16 +314,16 @@ button.vjs-big-play-button {
|
|
|
477
314
|
} */
|
|
478
315
|
|
|
479
316
|
@media (max-width:700px) {
|
|
480
|
-
|
|
481
|
-
font-size:
|
|
317
|
+
.title {
|
|
318
|
+
font-size: 0.6rem;
|
|
482
319
|
}
|
|
483
320
|
|
|
484
|
-
.
|
|
321
|
+
.rendition.selected:before {
|
|
485
322
|
height: 5px;
|
|
486
323
|
width: 5px;
|
|
487
324
|
}
|
|
488
325
|
|
|
489
|
-
.
|
|
326
|
+
.renditions {
|
|
490
327
|
font-size: 10px;
|
|
491
328
|
}
|
|
492
329
|
|
|
@@ -497,8 +334,114 @@ button.vjs-big-play-button {
|
|
|
497
334
|
}
|
|
498
335
|
|
|
499
336
|
/* Resolution Module End */
|
|
337
|
+
|
|
338
|
+
.video-js.vjs-paused .vjs-big-play-button{
|
|
339
|
+
display: flex;
|
|
340
|
+
justify-content: center;
|
|
341
|
+
align-items: center;
|
|
342
|
+
width: 50px;
|
|
343
|
+
height: 50px;
|
|
344
|
+
border-radius: 50%;
|
|
345
|
+
position: absolute;
|
|
346
|
+
top: 0;
|
|
347
|
+
left: 0;
|
|
348
|
+
right: 0;
|
|
349
|
+
bottom:0;
|
|
350
|
+
margin: auto;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.vjs-rewind-button{
|
|
354
|
+
cursor: pointer;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.vjs-skip-button{
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.vjs-playback-rate .vjs-playback-rate-value {
|
|
362
|
+
pointer-events: none;
|
|
363
|
+
font-size: 1.3em;
|
|
364
|
+
line-height: 2.4;
|
|
365
|
+
text-align: center;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
.video-js .vjs-live-display {
|
|
370
|
+
background-color: red;
|
|
371
|
+
padding: 0 5px;
|
|
372
|
+
height: 20px;
|
|
373
|
+
top: 5px;
|
|
374
|
+
position: relative;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.video-js .vjs-live-control {
|
|
378
|
+
line-height: 2em;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
/* Progress Bar Modification css */
|
|
384
|
+
/* .video-js .vjs-progress-control {
|
|
385
|
+
position: absolute;
|
|
386
|
+
width: 95%;
|
|
387
|
+
height: 0.5em;
|
|
388
|
+
top: -0.5em;
|
|
389
|
+
transition: height .1s,top .1s;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.video-js .vjs-time-control {
|
|
393
|
+
position: absolute;
|
|
394
|
+
top: -17px;
|
|
395
|
+
right: 0;
|
|
396
|
+
margin-right: 1%;
|
|
397
|
+
font-size: 10px;
|
|
398
|
+
font-weight: 700;
|
|
399
|
+
line-height: 2.5em;
|
|
400
|
+
letter-spacing: -.03em;
|
|
401
|
+
flex: 0 1 auto;
|
|
402
|
+
width: auto;
|
|
403
|
+
padding-left: 0;
|
|
404
|
+
padding-right: 0;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
.video-js .vjs-custom-control-spacer {
|
|
409
|
+
display: block;
|
|
410
|
+
flex: 1 1 auto;
|
|
411
|
+
} */
|
|
412
|
+
|
|
413
|
+
/* End Progress Bar Modification css */
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
.vjs-poster {
|
|
417
|
+
display: inline-block;
|
|
418
|
+
vertical-align: middle;
|
|
419
|
+
background-repeat: no-repeat;
|
|
420
|
+
background-position: 50% 50%;
|
|
421
|
+
background-size: contain;
|
|
422
|
+
background-color: #000;
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
margin: 0;
|
|
425
|
+
padding: 0;
|
|
426
|
+
position: absolute;
|
|
427
|
+
top: 0;
|
|
428
|
+
right: 0;
|
|
429
|
+
bottom: 0;
|
|
430
|
+
left: 0;
|
|
431
|
+
height: 100%;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* chromecast test*/
|
|
435
|
+
/* button.vjs-chromecast-button.vjs-control.vjs-button{
|
|
436
|
+
position: absolute;
|
|
437
|
+
top: 1rem;
|
|
438
|
+
width: auto;
|
|
439
|
+
right: 1rem;
|
|
440
|
+
height: auto;
|
|
441
|
+
} */
|
|
442
|
+
|
|
500
443
|
/* Chromecast */
|
|
501
|
-
.
|
|
444
|
+
.vjs-chromecast-button .vjs-icon-placeholder {
|
|
502
445
|
background: url('https://player.viewlift.com/images/ic_cast_white_24dp.png') center center no-repeat;
|
|
503
446
|
background-size: contain;
|
|
504
447
|
display: inline-block;
|
|
@@ -506,26 +449,24 @@ button.vjs-big-play-button {
|
|
|
506
449
|
height: 16px;
|
|
507
450
|
}
|
|
508
451
|
|
|
509
|
-
.
|
|
452
|
+
.vjs-chromecast-button:hover {
|
|
510
453
|
cursor: pointer;
|
|
511
454
|
}
|
|
512
455
|
|
|
513
|
-
.
|
|
456
|
+
.vjs-chromecast-button:hover .vjs-icon-placeholder {
|
|
514
457
|
background-image: url('https://player.viewlift.com/images/ic_cast_white_24dp.png');
|
|
515
458
|
}
|
|
516
459
|
|
|
517
|
-
.
|
|
460
|
+
.vjs-chromecast-button.vjs-chromecast-casting-state .vjs-icon-placeholder {
|
|
518
461
|
background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
|
|
519
462
|
}
|
|
520
463
|
|
|
521
|
-
.
|
|
464
|
+
.vjs-chromecast-button.vjs-chromecast-casting-state:hover .vjs-icon-placeholder {
|
|
522
465
|
background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
|
|
523
466
|
}
|
|
524
|
-
.video-js .vjs-chromecast-button >.vjs-chromecast-button-label{
|
|
525
|
-
display: none !important;
|
|
526
|
-
}
|
|
527
467
|
|
|
528
|
-
|
|
468
|
+
|
|
469
|
+
.vjs-tech-chromecast {
|
|
529
470
|
display: flex;
|
|
530
471
|
flex-direction: column;
|
|
531
472
|
justify-content: center;
|
|
@@ -533,7 +474,7 @@ button.vjs-big-play-button {
|
|
|
533
474
|
overflow: hidden;
|
|
534
475
|
}
|
|
535
476
|
|
|
536
|
-
.
|
|
477
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
|
|
537
478
|
content: ' ';
|
|
538
479
|
display: block;
|
|
539
480
|
height: 2px;
|
|
@@ -543,18 +484,18 @@ button.vjs-big-play-button {
|
|
|
543
484
|
left: calc(50% - 50px);
|
|
544
485
|
}
|
|
545
486
|
|
|
546
|
-
.
|
|
487
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
|
|
547
488
|
max-height: 180px;
|
|
548
489
|
width: auto;
|
|
549
490
|
border: 2px solid #cccccc;
|
|
550
491
|
}
|
|
551
492
|
|
|
552
|
-
.
|
|
493
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
|
|
553
494
|
width: 160px;
|
|
554
495
|
height: 90px;
|
|
555
496
|
}
|
|
556
497
|
|
|
557
|
-
.
|
|
498
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-title-container {
|
|
558
499
|
position: absolute;
|
|
559
500
|
bottom: 50%;
|
|
560
501
|
margin-bottom: 100px;
|
|
@@ -562,24 +503,24 @@ button.vjs-big-play-button {
|
|
|
562
503
|
text-align: center;
|
|
563
504
|
}
|
|
564
505
|
|
|
565
|
-
.
|
|
506
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-title {
|
|
566
507
|
font-size: 22px;
|
|
567
508
|
}
|
|
568
509
|
|
|
569
|
-
.
|
|
510
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
|
|
570
511
|
display: none;
|
|
571
512
|
}
|
|
572
513
|
|
|
573
|
-
.
|
|
514
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
|
|
574
515
|
font-size: 18px;
|
|
575
516
|
padding-top: 0.5em;
|
|
576
517
|
}
|
|
577
518
|
|
|
578
|
-
.
|
|
519
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
|
|
579
520
|
display: none;
|
|
580
521
|
}
|
|
581
522
|
|
|
582
|
-
.
|
|
523
|
+
.vjs-tech-chromecast {
|
|
583
524
|
display: flex;
|
|
584
525
|
flex-direction: column;
|
|
585
526
|
justify-content: center;
|
|
@@ -587,7 +528,7 @@ button.vjs-big-play-button {
|
|
|
587
528
|
overflow: hidden;
|
|
588
529
|
}
|
|
589
530
|
|
|
590
|
-
.
|
|
531
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
|
|
591
532
|
content: ' ';
|
|
592
533
|
display: block;
|
|
593
534
|
height: 2px;
|
|
@@ -597,18 +538,18 @@ button.vjs-big-play-button {
|
|
|
597
538
|
left: calc(50% - 50px);
|
|
598
539
|
}
|
|
599
540
|
|
|
600
|
-
.
|
|
541
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
|
|
601
542
|
max-height: 180px;
|
|
602
543
|
width: auto;
|
|
603
544
|
border: 2px solid #ccc;
|
|
604
545
|
}
|
|
605
546
|
|
|
606
|
-
.
|
|
547
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
|
|
607
548
|
width: 160px;
|
|
608
549
|
height: 90px;
|
|
609
550
|
}
|
|
610
551
|
|
|
611
|
-
.
|
|
552
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-title-container {
|
|
612
553
|
position: absolute;
|
|
613
554
|
bottom: 50%;
|
|
614
555
|
margin-bottom: 100px;
|
|
@@ -616,40 +557,21 @@ button.vjs-big-play-button {
|
|
|
616
557
|
text-align: center;
|
|
617
558
|
}
|
|
618
559
|
|
|
619
|
-
.
|
|
560
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-title {
|
|
620
561
|
font-size: 22px;
|
|
621
562
|
}
|
|
622
563
|
|
|
623
|
-
.
|
|
564
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
|
|
624
565
|
display: none;
|
|
625
566
|
}
|
|
626
567
|
|
|
627
|
-
.
|
|
568
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
|
|
628
569
|
font-size: 18px;
|
|
629
570
|
padding-top: 0.5em;
|
|
630
571
|
}
|
|
631
572
|
|
|
632
|
-
.
|
|
573
|
+
.vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
|
|
633
574
|
display: none;
|
|
634
575
|
}
|
|
635
576
|
|
|
636
|
-
/* Chromecast End */
|
|
637
|
-
/* Airplay */
|
|
638
|
-
|
|
639
|
-
.video-js .vjs-airplay-button .vjs-icon-placeholder {
|
|
640
|
-
background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
|
|
641
|
-
background-size: contain;
|
|
642
|
-
display: inline-block;
|
|
643
|
-
width: 15px;
|
|
644
|
-
height: 15px;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
.video-js .vjs-airplay-button:hover {
|
|
648
|
-
cursor: pointer;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
.video-js .vjs-airplay-button:hover .vjs-icon-placeholder {
|
|
652
|
-
background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/* Airplay end */
|
|
577
|
+
/* Chromecast End */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/typeof"),t=require("@babel/runtime/helpers/classCallCheck"),n=require("@babel/runtime/helpers/createClass"),a=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),r=require("@babel/runtime/helpers/getPrototypeOf"),i=require("video.js"),c=require("./icons-51594f89.js"),s=require("./generic-81b1be69.js"),l=require("./skin-84083352.js");function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return o(this,n)}}require("@babel/runtime/helpers/defineProperty"),require("axios"),require("js-cookie"),require("ua-parser-js"),require("@babel/runtime/helpers/toConsumableArray");var u=i.getComponent("Component"),p=function(o){a(p,u);var r=d(p);function p(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,p),(n=r.call(this,e,a)).playerId=a.playerId,n.seriesData=a.sres,n.currentVideoData=a.res,n.initialiseStructure(),n.loadCSS(),n}return n(p,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"caption-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"caption-selector-icon",innerHTML:"".concat(c.CaptionsSvgV2())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./caption-settings-67212c17.js")})).then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=s.getCaptions(this.playerId);null==t||t.map((function(t){return s.disableCaptions(e.playerId,t.id)}));var n=this.el(),a=i.dom.createEl("div",{className:"caption-selection-container hidden"});i.dom.$(".caption-selector-icon",this.el()).onclick=function(){var e;null!==(e=a.classList)&&void 0!==e&&e.contains("hidden")?(l.closeOpenDrawers(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px"):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height").slice(0,-2);a.style.height="".concat(o,"px"),i.dom.appendContent(n,a),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(a)}},{key:"addFunctionality",value:function(e){var t=this,n=this.el(),a=i.dom.createEl("div",{className:"caption-selector-head"}),o=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(c.crossIconSvg())});o.onclick=function(){e.classList.add("hidden"),n.classList.remove("open"),e.style.right="-350px"};var r=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),l=i.dom.createEl("div",{className:"caption-selector-content"}),d=i.dom.createEl("div",{className:"caption-container"}),u=this.createLanguageContanier();i.dom.appendContent(d,u);var p=this.createFontSizeContainer();i.dom.appendContent(d,p),i.dom.appendContent(a,o),i.dom.appendContent(a,r),i.dom.appendContent(e,a),i.dom.appendContent(e,l),i.dom.appendContent(l,d),s.getPlayer(this.playerId).on("fullscreenchange",(function(){var n=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(n,"px")}))}},{key:"createLanguageContanier",value:function(){var t=this,n=i.dom.createEl("div",{className:"caption-language-container"}),a=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(n,a);var o=document.createElement("label");o.setAttribute("for","radio-off"),o.className="caption-language-holder";var r=document.createElement("div");r.className="caption",r.innerHTML="Off";var c=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});c.setAttribute("type","radio"),c.onchange=function(e){s.getCaptions(t.playerId).map((function(e){return s.disableCaptions(t.playerId,e.id)}))},i.dom.appendContent(o,c),i.dom.appendContent(o,r),i.dom.appendContent(n,o);for(var l=s.getCaptions(this.playerId),d=function(e){var a=document.createElement("label");a.className="caption-language-holder",a.setAttribute("for","language-radio-".concat(e));var o=document.createElement("div");o.className="caption - ".concat(e),o.innerHTML=l[e].label;var r=i.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"language-radio"});return r.onchange=function(n){s.enableCaptions(t.playerId,l[e].id)},r.setAttribute("type","radio"),i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(n,a),{v:n}},u=0;u<l.length;u++){var p=d(u);if("object"===e(p))return p.v}}},{key:"createFontSizeContainer",value:function(){var e=i.dom.createEl("div",{className:"caption-font-container"}),t=i.dom.createEl("div",{className:"caption-font-container-title",innerHTML:"Font Size"});i.dom.appendContent(e,t);for(var n=[{size:14},{size:18},{size:24}],a=0;a<n.length;a++){var o=document.createElement("label");o.className="caption-font-holder",o.setAttribute("for","font".concat(a));var r=document.createElement("div");r.className="fontsize - ".concat(a),r.innerHTML=n[a].size+"pt";var c=i.dom.createEl("input",{className:"radio - ".concat(a),id:"font".concat(a),name:"font-size-radio",size:"".concat(n[a].size),checked:"".concat(a==n.length-1)});c.setAttribute("type","radio"),c.onchange=function(e){var t=e.target.size;if(document.getElementById("caption-size")){document.getElementById("caption-size").textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}")}else{var n=document.createElement("style");n.textContent=".vjs-text-track-cue{font-size:".concat(t,"px !important}"),n.id="caption-size",document.head.append(n)}},i.dom.appendContent(o,c),i.dom.appendContent(o,r),i.dom.appendContent(e,o)}return e}}]),p}();exports.default=p;
|