@viewlift/player-backup 1.0.3-lighteningjs → 1.0.3
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-823821e8.js +1 -0
- package/cjs/bundle.css +657 -0
- package/cjs/caption-settings-67212c17.js +1 -0
- package/cjs/caption-settings-d42c056e.js +1 -0
- package/cjs/debugSelection-cbfdabb7.js +1 -0
- package/cjs/dvr_skin-f7f770ae.js +1 -0
- package/cjs/error-26d5a3c3.js +1 -0
- package/cjs/features-164c3cc6.js +1 -0
- package/cjs/generic-8b99b151.js +1 -0
- package/cjs/icons-7afb9c13.js +1 -0
- package/cjs/index-3dfe6459.js +1 -0
- package/cjs/index.js +1 -0
- package/cjs/keyboardShortcuts-cfd998c2.js +1 -0
- package/cjs/loader-393b838a.js +1 -0
- package/cjs/multicam-21c9a90b.js +1 -0
- package/cjs/multicam-a41fe4a6.js +1 -0
- package/cjs/multicamv2-76d8530b.js +1 -0
- package/cjs/multicamv2-c148fa24.js +1 -0
- package/cjs/mwebPotrait-3c11d7cf.js +1 -0
- package/cjs/mwebPotraitTray-b9d5d45a.js +1 -0
- package/cjs/nextEpisodeButton-300afadc.js +1 -0
- package/cjs/nextEpisodeButton-b6e6586f.js +1 -0
- package/cjs/nondvr_skin-ef2cb3b2.js +1 -0
- package/cjs/playlist-925f808b.js +1 -0
- package/cjs/playlist-df87ca90.js +1 -0
- package/cjs/renditions-bc841552.js +1 -0
- package/cjs/resolution-6a9adf54.js +1 -0
- package/cjs/series-82ec79d3.js +1 -0
- package/cjs/series-9c237975.js +1 -0
- package/cjs/series-v2-24855152.js +1 -0
- package/cjs/series-v2-70137d8c.js +1 -0
- package/cjs/settings-icon-a63f46fc.js +1 -0
- package/cjs/settings-icon-e6a8feee.js +1 -0
- package/cjs/skin-095cc078.js +1 -0
- package/cjs/skin-225252ff.js +1 -0
- package/cjs/skin-39ab30e2.js +1 -0
- package/cjs/skin-84083352.js +1 -0
- package/cjs/skin-93a3e5ae.js +1 -0
- package/cjs/skin-983a2ea7.js +1 -0
- package/cjs/skin-afbec6d7.js +1 -0
- package/cjs/skin-ec49b877.js +1 -0
- package/cjs/skin-f225a42e.js +1 -0
- package/cjs/skin-fb394911.js +1 -0
- package/cjs/util-fa21734a.js +1 -0
- package/cjs/videoSelector-01a9ef43.js +1 -0
- package/cjs/videoSelector-fcdf11eb.js +1 -0
- package/esm/autoNextVideo-1672740e.js +1 -0
- package/esm/bundle.css +657 -0
- package/esm/caption-settings-2e47813b.js +1 -0
- package/esm/caption-settings-3eacf3a0.js +1 -0
- package/esm/debugSelection-2601b8b3.js +1 -0
- package/esm/dvr_skin-9cc1b144.js +1 -0
- package/esm/error-2395864b.js +1 -0
- package/esm/features-f86404ce.js +1 -0
- package/esm/generic-7c43020f.js +1 -0
- package/esm/icons-c18c70b7.js +1 -0
- package/esm/index-9f022e82.js +1 -0
- package/esm/index.js +1 -0
- package/esm/keyboardShortcuts-c06f3c7b.js +1 -0
- package/esm/loader-580278fe.js +1 -0
- package/esm/multicam-94da3759.js +1 -0
- package/esm/multicam-de741974.js +1 -0
- package/esm/multicamv2-0105c40f.js +1 -0
- package/esm/multicamv2-d006cffa.js +1 -0
- package/esm/mwebPotrait-3c1805d8.js +1 -0
- package/esm/mwebPotraitTray-5ab39989.js +1 -0
- package/esm/nextEpisodeButton-2ea69b56.js +1 -0
- package/esm/nextEpisodeButton-a1556cdf.js +1 -0
- package/esm/nondvr_skin-64be70e5.js +1 -0
- package/esm/playlist-032fbbf3.js +1 -0
- package/esm/playlist-7ecf432a.js +1 -0
- package/esm/renditions-97276745.js +1 -0
- package/esm/resolution-38cd4f5c.js +1 -0
- package/esm/series-041152aa.js +1 -0
- package/esm/series-977edced.js +1 -0
- package/esm/series-v2-0727ee8c.js +1 -0
- package/esm/series-v2-516c91c2.js +1 -0
- package/esm/settings-icon-0125bffd.js +1 -0
- package/esm/settings-icon-2b713fbf.js +1 -0
- package/esm/skin-2c638dc1.js +1 -0
- package/esm/skin-42c2f81d.js +1 -0
- package/esm/skin-5e2fa9d4.js +1 -0
- package/esm/skin-6093bfb3.js +1 -0
- package/esm/skin-60a41d44.js +1 -0
- package/esm/skin-665ec17e.js +1 -0
- package/esm/skin-93e320fc.js +1 -0
- package/esm/skin-b939c35e.js +1 -0
- package/esm/skin-cd537931.js +1 -0
- package/esm/skin-d5510f70.js +1 -0
- package/esm/util-d9f5a7be.js +1 -0
- package/esm/videoSelector-8889c58e.js +1 -0
- package/esm/videoSelector-8e258d45.js +1 -0
- package/package.json +15 -35
- package/.babelrc +0 -8
- package/.browserslistrc +0 -2
- package/README.md +0 -29
- package/babel.config.json +0 -8
- package/dist/38afc79c94e0bcf0.png +0 -0
- package/dist/3bc8b7ff04e98d37.png +0 -0
- package/dist/522ea7c76ac4fd33.png +0 -0
- package/dist/a74cd46ed4277568.png +0 -0
- package/dist/b739faec1fde1346.png +0 -0
- package/dist/ed3d0a4d9de91460.png +0 -0
- package/dist/index.cjs.css +0 -2
- package/dist/index.cjs.css.map +0 -1
- package/dist/index.cjs.js +0 -2
- package/dist/index.d.ts +0 -24
- package/dist/index.esm.css +0 -2
- package/dist/index.esm.css.map +0 -1
- package/dist/index.esm.js +0 -2
- package/dist/main-player/player-ui.d.ts +0 -19
- package/dist/player-components/player-buttons/playerButtons.d.ts +0 -38
- package/dist/player-components/player-seekbar/playerSeekbar.d.ts +0 -25
- package/dist/player-ui/player-ui.d.ts +0 -18
- package/dist/playerInitializer.d.ts +0 -13
- package/index.html +0 -49
- package/rollup.config.mjs +0 -45
- package/src/ads-manager/ads-manager.js +0 -120
- package/src/assets/checkIcon.png +0 -0
- package/src/assets/pauseIcon.png +0 -0
- package/src/assets/pauseIconFocus.png +0 -0
- package/src/assets/playIcon.png +0 -0
- package/src/assets/playIconFocus.png +0 -0
- package/src/assets/settingsIcon.png +0 -0
- package/src/index.ts +0 -74
- package/src/player-components/player-buttons/playerButtons.js +0 -106
- package/src/player-components/player-seekbar/playerSeekbar.js +0 -223
- package/src/player-components/player-setting-option-wrapper/player-setting-option-one-wrapper.js +0 -82
- package/src/player-components/player-setting-option-wrapper/player-setting-option-two-wrapper.js +0 -84
- package/src/player-components/player-sidebar/player-sidebar.js +0 -188
- package/src/player-components/player-title/playerTitle.js +0 -56
- package/src/player-ui/player-ui.js +0 -564
- package/src/playerControls/playerControls.css +0 -10
- package/src/playerControls/playerControls.js +0 -501
- package/src/playerInitializer.js +0 -335
- package/src/styles/index.css +0 -204
- package/src/utilities/utilities.js +0 -79
- package/tsconfig.json +0 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,t=require("./generic-8b99b151.js"),i=require("./util-fa21734a.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
ADDED
|
@@ -0,0 +1,657 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.widget-selection{
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.widget-selector-icon{
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.widget-container{
|
|
29
|
+
position: absolute;
|
|
30
|
+
/* height: 528px; */
|
|
31
|
+
width: 350px;
|
|
32
|
+
right: -350px;
|
|
33
|
+
bottom: 0px;
|
|
34
|
+
/* background: #626262; */
|
|
35
|
+
|
|
36
|
+
/* background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%) !important; */
|
|
37
|
+
background: #00000080 !important;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
transition: right 300ms ease-out;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.widget-container.hidden{
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.widget-selection.open{
|
|
47
|
+
background: rgba(255, 255, 255, 0.20) !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.widget-selector-head{
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: self-start;
|
|
53
|
+
padding-top: 18px;
|
|
54
|
+
padding-left: 20px;
|
|
55
|
+
margin-bottom: 25px;
|
|
56
|
+
}
|
|
57
|
+
.widget-selector-title-container{
|
|
58
|
+
display: flex;
|
|
59
|
+
padding-bottom: 6px;
|
|
60
|
+
border-bottom: 2px solid #838996;
|
|
61
|
+
margin-left: 25px;
|
|
62
|
+
width: 80%;
|
|
63
|
+
margin-top: -1px;
|
|
64
|
+
}
|
|
65
|
+
.widget-selector-title{
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
user-select: none;
|
|
68
|
+
}
|
|
69
|
+
.widget-selector-title:not(:first-child){
|
|
70
|
+
margin-left: 35px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
.widget-selector-title:hover{
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.widget-selector-cross-icon{
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
.widget-selector-content{
|
|
82
|
+
height: 74%;
|
|
83
|
+
overflow: scroll;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.widget-selector-content::-webkit-scrollbar {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
91
|
+
.widget-selector-content {
|
|
92
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
93
|
+
scrollbar-width: none; /* Firefox */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.widget-selector-content-video{
|
|
97
|
+
height: 300px;
|
|
98
|
+
margin-bottom: 30px;
|
|
99
|
+
/* background: red; */
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.selected-tab{
|
|
103
|
+
text-decoration: underline;
|
|
104
|
+
text-underline-offset: 8px;
|
|
105
|
+
text-decoration-thickness: 2px
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.highlights{
|
|
109
|
+
height: 175px;
|
|
110
|
+
width: 309px;
|
|
111
|
+
margin: 0 auto !important;
|
|
112
|
+
background-repeat: no-repeat;
|
|
113
|
+
background-size: contain;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.parent{
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.highlights:hover{
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.info{
|
|
124
|
+
font-size: 15px;
|
|
125
|
+
padding: 7px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.highlights-container{
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-self: center;
|
|
131
|
+
align-items: center;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.widget-selector-content #sr-widget{
|
|
136
|
+
padding: 0 18px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.vjs-poster {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
vertical-align: middle;
|
|
142
|
+
background-repeat: no-repeat;
|
|
143
|
+
background-position: 50% 50%;
|
|
144
|
+
background-size: contain;
|
|
145
|
+
background-color: #000;
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
margin: 0;
|
|
148
|
+
padding: 0;
|
|
149
|
+
position: absolute;
|
|
150
|
+
top: 0;
|
|
151
|
+
right: 0;
|
|
152
|
+
bottom: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
height: 100%;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
.video-js .vjs-tech{
|
|
159
|
+
outline: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.video-js.vjs-paused .vjs-big-play-button {
|
|
163
|
+
width: 90px;
|
|
164
|
+
height: 90px;
|
|
165
|
+
display: flex;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
align-items: center;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 0;
|
|
171
|
+
left: 0;
|
|
172
|
+
right: 0;
|
|
173
|
+
bottom: 0;
|
|
174
|
+
margin: auto;
|
|
175
|
+
font-size: 6em;
|
|
176
|
+
line-height: 1.3em;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media(max-width:600px){
|
|
180
|
+
button.vjs-big-play-button {
|
|
181
|
+
width: 50px !important;
|
|
182
|
+
height: 50px !important;
|
|
183
|
+
font-size: 2.1rem !important;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* ADs */
|
|
188
|
+
.ima-ad-container {
|
|
189
|
+
top: 0em;
|
|
190
|
+
position: absolute;
|
|
191
|
+
display: none;
|
|
192
|
+
width: 100%;
|
|
193
|
+
height: 100%;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ima-controls-div {
|
|
197
|
+
bottom: 0em;
|
|
198
|
+
height: 1.4em;
|
|
199
|
+
position: absolute;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
display: none;
|
|
202
|
+
opacity: 1;
|
|
203
|
+
background-color: rgba(7, 20, 30, .7);
|
|
204
|
+
background: -moz-linear-gradient(bottom, rgba(7, 20, 30, .7) 0%, rgba(7, 20, 30, 0) 100%);
|
|
205
|
+
/* FF3.6+ */
|
|
206
|
+
background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(7, 20, 30, .7)), color-stop(100%, rgba(7, 20, 30, 0)));
|
|
207
|
+
/* Chrome,Safari4+ */
|
|
208
|
+
background: -webkit-linear-gradient(bottom, rgba(7, 20, 30, .7) 0%, rgba(7, 20, 30, 0) 100%);
|
|
209
|
+
/* Chrome10+,Safari5.1+ */
|
|
210
|
+
background: -o-linear-gradient(bottom, rgba(7, 20, 30, .7) 0%, rgba(7, 20, 30, 0) 100%);
|
|
211
|
+
/* Opera 11.10+ */
|
|
212
|
+
background: -ms-linear-gradient(bottom, rgba(7, 20, 30, .7) 0%, rgba(7, 20, 30, 0) 100%);
|
|
213
|
+
/* IE10+ */
|
|
214
|
+
background: linear-gradient(to top, rgba(7, 20, 30, .7) 0%, rgba(7, 20, 30, 0) 100%);
|
|
215
|
+
/* W3C */
|
|
216
|
+
/* filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#0007141E', endColorstr='#07141E', GradientType=0); */
|
|
217
|
+
/* IE6-9 */
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ima-controls-div.ima-controls-div-showing {
|
|
221
|
+
height: 3.7em;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ima-countdown-div {
|
|
225
|
+
height: 1em;
|
|
226
|
+
color: #FFFFFF;
|
|
227
|
+
text-shadow: 0 0 0.2em #000;
|
|
228
|
+
cursor: default;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ima-seek-bar-div {
|
|
232
|
+
top: 1.2em;
|
|
233
|
+
height: 0.3em;
|
|
234
|
+
position: absolute;
|
|
235
|
+
background: rgba(255, 255, 255, .4);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ima-progress-div {
|
|
239
|
+
width: 0em;
|
|
240
|
+
height: 0.3em;
|
|
241
|
+
background-color: #ECC546;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.ima-play-pause-div,
|
|
245
|
+
.ima-mute-div,
|
|
246
|
+
.ima-slider-div,
|
|
247
|
+
.ima-fullscreen-div {
|
|
248
|
+
width: 2.33em;
|
|
249
|
+
height: 1.33em;
|
|
250
|
+
top: 0.733em;
|
|
251
|
+
left: 0em;
|
|
252
|
+
position: absolute;
|
|
253
|
+
color: #CCCCCC;
|
|
254
|
+
font-size: 1.5em;
|
|
255
|
+
line-height: 2;
|
|
256
|
+
text-align: center;
|
|
257
|
+
font-family: VideoJS;
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ima-mute-div {
|
|
262
|
+
left: auto;
|
|
263
|
+
right: 5.667em;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ima-slider-div {
|
|
267
|
+
left: auto;
|
|
268
|
+
right: 2.33em;
|
|
269
|
+
width: 3.33em;
|
|
270
|
+
height: 0.667em;
|
|
271
|
+
top: 1.33em;
|
|
272
|
+
background-color: #555555;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.ima-slider-level-div {
|
|
276
|
+
width: 100%;
|
|
277
|
+
height: 0.667em;
|
|
278
|
+
background-color: #ECC546;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ima-fullscreen-div {
|
|
282
|
+
left: auto;
|
|
283
|
+
right: 0em;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.ima-playing:before {
|
|
287
|
+
content: "\00f103";
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.ima-paused:before {
|
|
291
|
+
content: "\00f101";
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.ima-playing:hover:before,
|
|
295
|
+
.ima-paused:hover:before {
|
|
296
|
+
text-shadow: 0 0 1em #fff;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ima-non-muted:before {
|
|
300
|
+
content: "\00f107";
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.ima-muted:before {
|
|
304
|
+
content: "\00f104";
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.ima-non-muted:hover:before,
|
|
308
|
+
.ima-muted:hover:before {
|
|
309
|
+
text-shadow: 0 0 1em #fff;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.ima-non-fullscreen:before {
|
|
313
|
+
content: "\00f108";
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ima-fullscreen:before {
|
|
317
|
+
content: "\00f109";
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.ima-non-fullscreen:hover:before,
|
|
321
|
+
.ima-fullscreen:hover:before {
|
|
322
|
+
text-shadow: 0 0 1em #fff;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* Move overlay when controls are active. */
|
|
326
|
+
.video-js.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container {
|
|
327
|
+
margin-top: 0em;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.video-js.vjs-paused .bumpable-ima-ad-container,
|
|
331
|
+
.video-js.vjs-playing:hover .bumpable-ima-ad-container,
|
|
332
|
+
.video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container {
|
|
333
|
+
margin-top: -4em;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Move overlay if user fast-clicks play button. */
|
|
337
|
+
|
|
338
|
+
.video-js.vjs-playing .bumpable-ima-ad-container {
|
|
339
|
+
margin-top: -4em;
|
|
340
|
+
}
|
|
341
|
+
/* Resolution Module */
|
|
342
|
+
|
|
343
|
+
.video-js .container {
|
|
344
|
+
position: relative;
|
|
345
|
+
display: flex;
|
|
346
|
+
align-items: center;
|
|
347
|
+
width: 5em;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.video-js .setting-icon:hover {
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.video-js .customFontHeading {
|
|
356
|
+
font-size: 13px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.video-js .content {
|
|
360
|
+
opacity: 1;
|
|
361
|
+
display: flex;
|
|
362
|
+
position: absolute;
|
|
363
|
+
background-color: rgb(52 51 51 / 70%);
|
|
364
|
+
height: max-content;
|
|
365
|
+
width: max-content;
|
|
366
|
+
text-align: center;
|
|
367
|
+
overflow-y: scroll;
|
|
368
|
+
bottom: 2.4rem;
|
|
369
|
+
right: -2rem;
|
|
370
|
+
border-radius: 5px;
|
|
371
|
+
z-index: 1;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.video-js .resolution{
|
|
375
|
+
min-width: 180px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.video-js .rendition {
|
|
379
|
+
margin: 4px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.video-js .rendition span {
|
|
383
|
+
background: brown;
|
|
384
|
+
color: #fff;
|
|
385
|
+
font-size: 9px;
|
|
386
|
+
padding: 1px 3px;
|
|
387
|
+
border-radius: 2px;
|
|
388
|
+
margin-left: 2px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@media(max-width:500px) {
|
|
392
|
+
.video-js .rendition {
|
|
393
|
+
margin: 1px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.video-js .title {
|
|
397
|
+
margin: 2px;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.video-js .hidden {
|
|
402
|
+
opacity: 0;
|
|
403
|
+
visibility: hidden;
|
|
404
|
+
transition: visibility 300ms, opacity 300ms;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.video-js .rendition {
|
|
408
|
+
padding: 3px 1.6rem;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.video-js .selected {
|
|
412
|
+
font-weight: 900;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
.video-js .renditions {
|
|
417
|
+
font-size: 12px;
|
|
418
|
+
position: relative;
|
|
419
|
+
padding: 1px;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.video-js .rendition.selected::before {
|
|
423
|
+
content: "";
|
|
424
|
+
position: absolute;
|
|
425
|
+
width: 5px;
|
|
426
|
+
height: 5px;
|
|
427
|
+
top: 50%;
|
|
428
|
+
border-radius: 50%;
|
|
429
|
+
background: white;
|
|
430
|
+
left: 10px;
|
|
431
|
+
-webkit-transform: translateY(-50%);
|
|
432
|
+
transform: translateY(-50%);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.video-js .content::-webkit-scrollbar {
|
|
436
|
+
/* WebKit */
|
|
437
|
+
width: 0;
|
|
438
|
+
height: 0;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.video-js .disable-play-btn {
|
|
442
|
+
display: none !important;
|
|
443
|
+
pointer-events: none !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.video-js .title {
|
|
447
|
+
font-size: 14px;
|
|
448
|
+
font-weight: 900;
|
|
449
|
+
padding: 3px 0px;
|
|
450
|
+
margin-top: 5px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.video-js .rendition:hover {
|
|
454
|
+
cursor: pointer;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.video-js .relative {
|
|
458
|
+
position: relative;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
.video-js p.customFontHeading {
|
|
463
|
+
margin: 4px;
|
|
464
|
+
padding: 3px;
|
|
465
|
+
font-weight: 900;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.video-js .font {
|
|
469
|
+
font-size: 1rem;
|
|
470
|
+
width: 5rem;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
/* @media (max-width:700px){
|
|
476
|
+
.hideCustomFonts{
|
|
477
|
+
display: none;
|
|
478
|
+
}
|
|
479
|
+
} */
|
|
480
|
+
|
|
481
|
+
@media (max-width:700px) {
|
|
482
|
+
.video-js .title {
|
|
483
|
+
font-size: 12px;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.video-js .rendition.selected:before {
|
|
487
|
+
height: 5px;
|
|
488
|
+
width: 5px;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.video-js .renditions {
|
|
492
|
+
font-size: 10px;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.hideCustomFonts {
|
|
498
|
+
/* display: none; */
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* Resolution Module End */
|
|
502
|
+
/* Chromecast */
|
|
503
|
+
.video-js .vjs-chromecast-button .vjs-icon-placeholder {
|
|
504
|
+
background: url('https://player.viewlift.com/images/ic_cast_white_24dp.png') center center no-repeat;
|
|
505
|
+
background-size: contain;
|
|
506
|
+
display: inline-block;
|
|
507
|
+
width: 16px;
|
|
508
|
+
height: 16px;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.video-js .vjs-chromecast-button:hover {
|
|
512
|
+
cursor: pointer;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.video-js .vjs-chromecast-button:hover .vjs-icon-placeholder {
|
|
516
|
+
background-image: url('https://player.viewlift.com/images/ic_cast_white_24dp.png');
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.video-js .vjs-chromecast-button.vjs-chromecast-casting-state .vjs-icon-placeholder {
|
|
520
|
+
background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.video-js .vjs-chromecast-button.vjs-chromecast-casting-state:hover .vjs-icon-placeholder {
|
|
524
|
+
background-image: url('https://player.viewlift.com/images/ic_cast_connected_white_24dp.png');
|
|
525
|
+
}
|
|
526
|
+
.video-js .vjs-chromecast-button >.vjs-chromecast-button-label{
|
|
527
|
+
display: none !important;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.video-js .vjs-tech-chromecast {
|
|
531
|
+
display: flex;
|
|
532
|
+
flex-direction: column;
|
|
533
|
+
justify-content: center;
|
|
534
|
+
align-items: center;
|
|
535
|
+
overflow: hidden;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
|
|
539
|
+
content: ' ';
|
|
540
|
+
display: block;
|
|
541
|
+
height: 2px;
|
|
542
|
+
width: 100px;
|
|
543
|
+
background-color: #cccccc;
|
|
544
|
+
position: absolute;
|
|
545
|
+
left: calc(50% - 50px);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
|
|
549
|
+
max-height: 180px;
|
|
550
|
+
width: auto;
|
|
551
|
+
border: 2px solid #cccccc;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
|
|
555
|
+
width: 160px;
|
|
556
|
+
height: 90px;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-title-container {
|
|
560
|
+
position: absolute;
|
|
561
|
+
bottom: 50%;
|
|
562
|
+
margin-bottom: 100px;
|
|
563
|
+
color: #cccccc;
|
|
564
|
+
text-align: center;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-title {
|
|
568
|
+
font-size: 22px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
|
|
572
|
+
display: none;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
|
|
576
|
+
font-size: 18px;
|
|
577
|
+
padding-top: 0.5em;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
|
|
581
|
+
display: none;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.video-js .vjs-tech-chromecast {
|
|
585
|
+
display: flex;
|
|
586
|
+
flex-direction: column;
|
|
587
|
+
justify-content: center;
|
|
588
|
+
align-items: center;
|
|
589
|
+
overflow: hidden;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster::after {
|
|
593
|
+
content: ' ';
|
|
594
|
+
display: block;
|
|
595
|
+
height: 2px;
|
|
596
|
+
width: 100px;
|
|
597
|
+
background-color: #ccc;
|
|
598
|
+
position: absolute;
|
|
599
|
+
left: calc(50% - 50px);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img {
|
|
603
|
+
max-height: 180px;
|
|
604
|
+
width: auto;
|
|
605
|
+
border: 2px solid #ccc;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-poster-img.vjs-tech-chromecast-poster-img-empty {
|
|
609
|
+
width: 160px;
|
|
610
|
+
height: 90px;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-title-container {
|
|
614
|
+
position: absolute;
|
|
615
|
+
bottom: 50%;
|
|
616
|
+
margin-bottom: 100px;
|
|
617
|
+
color: #ccc;
|
|
618
|
+
text-align: center;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-title {
|
|
622
|
+
font-size: 22px;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-title.vjs-tech-chromecast-title-empty {
|
|
626
|
+
display: none;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle {
|
|
630
|
+
font-size: 18px;
|
|
631
|
+
padding-top: 0.5em;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.video-js .vjs-tech-chromecast .vjs-tech-chromecast-subtitle.vjs-tech-chromecast-subtitle-empty {
|
|
635
|
+
display: none;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/* Chromecast End */
|
|
639
|
+
/* Airplay */
|
|
640
|
+
|
|
641
|
+
.video-js .vjs-airplay-button .vjs-icon-placeholder {
|
|
642
|
+
background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
|
|
643
|
+
background-size: contain;
|
|
644
|
+
display: inline-block;
|
|
645
|
+
width: 15px;
|
|
646
|
+
height: 15px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.video-js .vjs-airplay-button:hover {
|
|
650
|
+
cursor: pointer;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.video-js .vjs-airplay-button:hover .vjs-icon-placeholder {
|
|
654
|
+
background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/* Airplay end */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.default="input[type='radio'] {\n -moz-appearance:initial;\n}\n.caption-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.caption-selector-icon {\n cursor: pointer;\n}\n\n.caption-selection-container {\n position: absolute;\n width: 300px;\n bottom: 0px;\n right: -350px;\n background: #00000080 !important;\n z-index: -1;\n transition: right 300ms ease-out;\n}\n\n.caption-container {\n display: flex;\n flex-direction: column;\n}\n\n\n\n\ninput[type='radio']:after {\n width: 12px;\n height: 12px;\n border-radius: 15px;\n top: 3px;\n left: 0px;\n position: relative;\n background-color: transparent;\n content: '';\n display: inline-block;\n visibility: visible;\n border: 2px solid white;\n}\n\n\ninput[type='radio']:checked:after {\n width: 12px;\n height: 12px;\n border-radius: 15px;\n top: 3px;\n left: 0px;\n position: relative;\n background-color: #fff;\n content: '';\n display: inline-block;\n visibility: visible;\n border: 2px solid transparent;\n}\n\n.caption-selection.open {\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.caption-selector-head {\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 30px;\n}\n\n.caption-selector-title {\n font-size: 18px;\n font-weight: 600;\n margin-left: 25px;\n user-select: none;\n}\n\n.caption-selector-cross-icon {\n cursor: pointer;\n}\n\n.caption-selector-content {\n padding: 0 18px;\n height: 74%;\n overflow: scroll;\n}\n\n.caption-selector-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.caption-selector-content {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.caption-selector-content-video {\n height: 300px;\n margin-bottom: 30px;\n}\n\n.recommended {\n height: 175px;\n width: 309px;\n background-repeat: no-repeat;\n background-size: contain;\n}\n\n.related-thumbnail-image {\n width: 100%;\n height: 100%;\n}\n\n\n/* Caption Language CSS ***********************************************************************************************************/\n.caption-language-container-title {\n margin-left: 10px;\n font-size: 16px;\n text-align: left;\n font-weight: 600;\n margin-bottom: 10px;\n}\n\n.caption-language-container {\n width: 100%;\n margin-bottom: 30px;\n}\n\n.caption-language-holder {\n display: flex;\n width: 90%;\n height: 2.5rem;\n padding: 10px 10px;\n margin-bottom: 10px;\n margin-left: 6px;\n}\n\n.caption-language-holder>input {\n margin: 1px 4px;\n visibility: hidden;\n}\n\n.caption-language-holder>input[type='radio']:checked {\n background: black;\n}\n\n.caption-language-selected {\n background: rgba(255, 255, 255, 0.2);\n}\n\n.caption-language-holder:hover {\n cursor: pointer;\n}\n.caption {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-left: 4px;\n}\n/* END ********************************************************************************************************************************/\n\n\n\n/* Caption Font Size Container */\n.caption-font-container {\n width: 100%;\n}\n\n.caption-font-container-title {\n font-size: 16px;\n text-align: left;\n font-weight: 600;\n margin-bottom: 10px;\n margin-left: 10px;\n}\n\n.caption-font-holder>input {\n margin: 1px 4px;\n visibility: hidden;\n}\n\n.caption-font-holder {\n display: flex;\n width: 90%;\n height: 2.5rem;\n padding: 10px 10px;\n margin-bottom: 10px;\n margin-left: 6px;\n}\n\n.caption-font-size-selected {\n background: rgba(255, 255, 255, 0.2);\n}\n\n.caption-font-holder:hover {\n cursor: pointer;\n}\n.fontsize {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-left: 4px;\n}\n/* END ********************************************************************************************************************************/\n\n\n\n\n\n.parent {\n margin: 21px 52px 23px 34px;\n\n}\n\n.recommended:hover {\n cursor: pointer;\n}\n\n.info {\n font-size: 13px;\n padding: 7px 22px;\n}\n\n label:has(> :checked) {\n background: rgba(255, 255, 255, 0.2);\n}\n\n@media (max-width:600px) {\n .caption-language-container-title{\n margin-bottom: 10px;\n }\n .caption-language-container{\n margin-bottom: 8px;\n }\n .caption-font-container-title {\n font-size: 12px;\n }\n .caption{\n font-size: 12px;\n }\n .fontsize {\n display: flex;\n align-items: center;\n font-size: 11px;\n margin-left: 2px;\n }\n .caption-font-holder {\n display: flex;\n align-items: center;\n width: 90%;\n height: 1.5rem;\n padding: 10px 10px;\n margin-bottom: 10px;\n margin-left: 6px;\n }\n input[type='radio']:checked:after {\n width: 10px;\n height: 10px;\n border-radius: 15px;\n top: 0px;\n left: 0px;\n position: relative;\n background-color: #fff;\n content: '';\n display: inline-block;\n visibility: visible;\n border: 2px solid transparent;\n }\n input[type='radio']:after {\n width: 10px;\n height: 10px;\n border-radius: 15px;\n border-radius: 15px;\n top: 0px;\n left: 0px;\n position: relative;\n background-color: transparent;\n content: '';\n display: inline-block;\n visibility: visible;\n border: 2px solid white;\n }\n .caption-selector-head{\n margin-bottom: 12px;\n }\n .caption-selector-cross-icon>svg {\n height: 12px;\n }\n .caption-language-holder {\n display: flex;\n width: 90%;\n height: 1.5rem;\n padding: 6px 7px;\n margin-bottom: 9px;\n margin-left: 6px;\n align-items: center;\n }\n .caption-language-container-title {\n margin-left: 10px;\n font-size: 12px;\n text-align: left;\n font-weight: 600;\n margin-bottom: 6px;\n }\n .caption-selector-title {\n font-size: 14px;\n }\n\n .caption-selector-content {\n height: 52%;\n }\n\n .caption-selection-container {\n width: 200px;\n }\n\n .recommended {\n height: 90px !important;\n width: 154px !important;\n }\n\n .info {\n font-size: 9px !important;\n }\n\n .caption-selector-title {\n margin-left: 13px;\n }\n}";
|
|
@@ -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-7afb9c13.js"),s=require("./generic-8b99b151.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.default=".debug-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.debug-selection-icon>svg{\n cursor: pointer;\n}\n.debug-item {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0.5rem 1.4rem;\n font-size: 0.7rem;\n}\n.debug-item-wrapper {\n width: 100%;\n} \n.debug-title-item {\n font-weight: bold;\n}\n\n.debug-selector-icon {\n cursor: pointer;\n}\n\n.debug-selection-container {\n position: absolute;\n width: 320px;\n bottom: 0px;\n right: -320px;\n background: #00000080 !important;\n z-index: -1;\n transition: right 300ms ease-out;\n}\n\n.debug-container {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n}\n\n.debug-selection.open {\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.debug-selector-head {\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.debug-selector-title {\n font-size: 18px;\n font-weight: 600;\n margin-left: 25px;\n user-select: none;\n}\n\n.debug-selector-cross-icon {\n cursor: pointer;\n}\n\n.debug-selector-content {\n height: 74%;\n overflow: scroll;\n}\n\n.debug-selector-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.debug-selector-content {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.debug-selector-content-video {\n height: 300px;\n margin-bottom: 30px;\n}\n\n.recommended {\n height: 175px;\n width: 309px;\n background-repeat: no-repeat;\n background-size: contain;\n}\n.related-thumbnail-image{\n width: 100%;\n height: 100%;\n}\n.video {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 12px;\n}\n\n.parent {\n margin: 21px 52px 23px 34px;\n\n}\n\n.recommended:hover {\n cursor: pointer;\n}\n\n.info {\n font-size: 13px;\n padding: 7px 22px;\n}\n\n@media (max-width:600px){\n .debug-selector-cross-icon>svg{\n height: 12px;\n }\n .debug-selector-title{\n font-size: 14px;\n }\n .debug-selector-content{\n height: 52%;\n }\n .debug-selection-container{\n width: 200px;\n }\n .recommended{\n height: 90px !important;\n width: 154px !important;\n }\n .info {\n font-size: 9px !important;\n }\n .debug-selector-title{\n margin-left: 13px;\n }\n}";
|