@viewlift/player-backup 1.0.139-backup → 1.0.140-backup
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-2220fa0e.js +1 -0
- package/cjs/browser-77c57718.js +1 -0
- package/cjs/bundle.css +291 -125
- package/cjs/caption-settings-a355bdc9.js +1 -0
- package/cjs/captions-37b81672.js +1 -0
- package/cjs/features-c3f24777.js +1 -0
- package/cjs/generic-cdde2bcb.js +1 -0
- package/cjs/icons-0ea2e662.js +1 -0
- package/cjs/index-b89a764b.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-114b8211.js +1 -0
- package/cjs/{multicamv2-76d8530b.js → multicamv2-7a86b517.js} +1 -1
- package/cjs/multicamv2-e7a024e5.js +1 -0
- package/cjs/multicamv2-f7b818dc.js +1 -0
- package/cjs/nextEpisodeButton-9196ac36.js +1 -0
- package/cjs/playlist-8009c8ee.js +1 -0
- package/cjs/renditions-fd408798.js +1 -0
- package/cjs/resolution-c59e995e.js +1 -0
- package/cjs/series-099e6737.js +1 -0
- package/cjs/series-v2-04472382.js +1 -0
- package/cjs/series-v2-167d4ba9.js +1 -0
- package/cjs/series-v2-232bef33.js +1 -0
- package/cjs/series-v2-e037e14e.js +1 -0
- package/cjs/settings-icon-bef54795.js +1 -0
- package/cjs/skin-1b2c61f6.js +1 -0
- package/cjs/skin-1d28c277.js +1 -0
- package/cjs/skin-4209bc32.js +1 -0
- package/cjs/skin-4d54559c.js +1 -0
- package/cjs/skin-aef573bd.js +1 -0
- package/cjs/skin-ba38afdb.js +1 -0
- package/cjs/skin-d5857518.js +1 -0
- package/cjs/skin-d981d0d7.js +1 -0
- package/cjs/skin-e6f4cd9a.js +1 -0
- package/cjs/util-197a4f7c.js +1 -0
- package/cjs/videoSelector-1c333845.js +1 -0
- package/cjs/videoSelector-45b638bf.js +1 -0
- package/cjs/videoSelector-79c01024.js +1 -0
- package/esm/autoNextVideo-b11763cb.js +1 -0
- package/esm/browser-d4613b36.js +1 -0
- package/esm/bundle.css +291 -125
- package/esm/caption-settings-ddfbca32.js +1 -0
- package/esm/captions-6cc39cdc.js +1 -0
- package/esm/features-c633895c.js +1 -0
- package/esm/generic-ab80b8ea.js +1 -0
- package/esm/{icons-3e9a1686.js → icons-79ad4d7d.js} +1 -1
- package/esm/index-58e0b4a3.js +1 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-1f5b284d.js +1 -0
- package/esm/{multicamv2-d006cffa.js → multicamv2-1fb5149a.js} +1 -1
- package/esm/multicamv2-78694bcb.js +1 -0
- package/esm/multicamv2-92ab3e07.js +1 -0
- package/esm/nextEpisodeButton-af315609.js +1 -0
- package/esm/playlist-f08c3124.js +1 -0
- package/esm/renditions-c0f96578.js +1 -0
- package/esm/resolution-00449d8d.js +1 -0
- package/esm/series-a5fb6bbc.js +1 -0
- package/esm/series-v2-1cbb5dc9.js +1 -0
- package/esm/series-v2-87343239.js +1 -0
- package/esm/series-v2-8c8b0a2d.js +1 -0
- package/esm/series-v2-9b47527e.js +1 -0
- package/esm/settings-icon-23053add.js +1 -0
- package/esm/skin-0ef7630b.js +1 -0
- package/esm/skin-2882ecc4.js +1 -0
- package/esm/skin-30914edb.js +1 -0
- package/esm/skin-532012c0.js +1 -0
- package/esm/skin-54fd9894.js +1 -0
- package/esm/skin-6311a73f.js +1 -0
- package/esm/skin-71be210e.js +1 -0
- package/esm/skin-ab48f536.js +1 -0
- package/esm/skin-ebbda87d.js +1 -0
- package/esm/util-6f289757.js +1 -0
- package/esm/videoSelector-538a2e27.js +1 -0
- package/esm/videoSelector-72bf1669.js +1 -0
- package/esm/videoSelector-9e7d0c5e.js +1 -0
- package/package.json +7 -8
- package/cjs/autoNextVideo-31f6fc5c.js +0 -1
- package/cjs/caption-settings-903072e9.js +0 -1
- package/cjs/dvr_skin-f7f770ae.js +0 -1
- package/cjs/features-3aeac1e6.js +0 -1
- package/cjs/generic-29557f14.js +0 -1
- package/cjs/icons-515b2da0.js +0 -1
- package/cjs/keyboardShortcuts-ac2bfc24.js +0 -1
- package/cjs/loader-393b838a.js +0 -1
- package/cjs/multicam-5218fef6.js +0 -1
- package/cjs/multicam-a41fe4a6.js +0 -1
- package/cjs/multicamv2-e9850465.js +0 -1
- package/cjs/mwebPotrait-3c11d7cf.js +0 -1
- package/cjs/mwebPotraitTray-a31b199f.js +0 -1
- package/cjs/nextEpisodeButton-8f9d591f.js +0 -1
- package/cjs/nondvr_skin-ef2cb3b2.js +0 -1
- package/cjs/playlist-90a943c3.js +0 -1
- package/cjs/renditions-2a68e55f.js +0 -1
- package/cjs/resolution-2507ae3f.js +0 -1
- package/cjs/series-7c676fab.js +0 -1
- package/cjs/series-v2-a794f025.js +0 -1
- package/cjs/series-v2-fd7485a5.js +0 -1
- package/cjs/settings-icon-fd361a36.js +0 -1
- package/cjs/skin-1f5a5ba7.js +0 -1
- package/cjs/skin-261515e4.js +0 -1
- package/cjs/skin-2a6e5efd.js +0 -1
- package/cjs/skin-59e1e9f8.js +0 -1
- package/cjs/skin-97230e22.js +0 -1
- package/cjs/skin-983a2ea7.js +0 -1
- package/cjs/skin-b41ed404.js +0 -1
- package/cjs/skin-c66e9b42.js +0 -1
- package/cjs/util-edad3d26.js +0 -1
- package/cjs/videoSelector-144e411f.js +0 -1
- package/esm/autoNextVideo-ae83ac79.js +0 -1
- package/esm/caption-settings-286e1acf.js +0 -1
- package/esm/dvr_skin-9cc1b144.js +0 -1
- package/esm/features-27b875c1.js +0 -1
- package/esm/generic-3a4a5eee.js +0 -1
- package/esm/keyboardShortcuts-48e91712.js +0 -1
- package/esm/loader-580278fe.js +0 -1
- package/esm/multicam-9b52f856.js +0 -1
- package/esm/multicam-de741974.js +0 -1
- package/esm/multicamv2-5eebf15d.js +0 -1
- package/esm/mwebPotrait-3c1805d8.js +0 -1
- package/esm/mwebPotraitTray-918b9c46.js +0 -1
- package/esm/nextEpisodeButton-4fda97dc.js +0 -1
- package/esm/nondvr_skin-64be70e5.js +0 -1
- package/esm/playlist-100a8a60.js +0 -1
- package/esm/renditions-e6a8fbb9.js +0 -1
- package/esm/resolution-5444c761.js +0 -1
- package/esm/series-5bdad7f3.js +0 -1
- package/esm/series-v2-3848a876.js +0 -1
- package/esm/series-v2-4cdbf9b1.js +0 -1
- package/esm/settings-icon-a9dfd1d7.js +0 -1
- package/esm/skin-1b9cdb94.js +0 -1
- package/esm/skin-60001dc5.js +0 -1
- package/esm/skin-96d2bdc5.js +0 -1
- package/esm/skin-c81400ed.js +0 -1
- package/esm/skin-cd537931.js +0 -1
- package/esm/skin-d2d14455.js +0 -1
- package/esm/skin-edc9cefb.js +0 -1
- package/esm/skin-fbc45594.js +0 -1
- package/esm/util-89ccc154.js +0 -1
- package/esm/videoSelector-feca34d2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e,i=require("./generic-cdde2bcb.js"),t=require("./util-197a4f7c.js"),n=require("./skin-aef573bd.js"),o=0,u=0,d=function e(t,o,d,c){u=t,t>d.length-1||(i.setVideoIdx(u+1),i.load(o,d[t].id).then((function(e){n.highlightVideo(u,o),u++,r(e)})).catch((function(i){r(i),setTimeout((function(){n.highlightVideo(u,o),u++,e(u,o,d)}),5e3)})))},r=function(i){e&&e(i)};exports.autoPlayNext=function(c){clearTimeout(o);var h=null==c?void 0:c.content;e=null==c?void 0:c.cb;var l=c.playerId;t.onVideoEnded(l,(function(){var e=n.getPlayer(l);0!==(null==e?void 0:e.currentTime())&&((u=i.getVideoIdx())>h.length-1||(i.setVideoIdx(u+1),i.load(l,h[u].id).then((function(e){n.highlightVideo(u,l),i.setCurrentVideo(e.response),u++,r(e)})).catch((function(e){r(e),n.highlightVideo(u,l),u++,o=setTimeout((function(){i.isPaused(l)&&d(u,l,h)}),5e3)}))))}))},exports.switchToNext=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.detectBrowser=function(){var e,r;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(r=e.userAgentData)||void 0===r?void 0:r.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},exports.isMobile=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)};
|
package/cjs/bundle.css
CHANGED
|
@@ -2,140 +2,257 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
.video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control {
|
|
6
|
+
height: 0.7em;
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: -0.7em;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
5
11
|
|
|
12
|
+
.video-js.skin_vlone .vjs-progress-holder.vjs-slider.vjs-slider-horizontal {
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
6
15
|
|
|
16
|
+
.video-js.skin_vlone .vjs-play-progress:before {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
7
19
|
|
|
20
|
+
.video-js.skin_vlone .vjs-progress-control>.vjs-progress-holder.vjs-slider {
|
|
21
|
+
margin: 0 !important;
|
|
8
22
|
|
|
23
|
+
}
|
|
9
24
|
|
|
10
25
|
|
|
26
|
+
.video-js.skin_vlone .vjs-custom-control-spacer {
|
|
27
|
+
display: block;
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
}
|
|
11
30
|
|
|
12
31
|
|
|
32
|
+
.video-js.skin_vlone .vjs-control-bar {
|
|
33
|
+
height: 40px;
|
|
34
|
+
}
|
|
13
35
|
|
|
36
|
+
.video-js.skin_vlone .vjs-big-play-button .vjs-icon-placeholder:before,
|
|
37
|
+
.vjs-button>.vjs-icon-placeholder:before {
|
|
38
|
+
position: relative !important;
|
|
39
|
+
}
|
|
40
|
+
.video-js.skin_vlone .vjs-big-play-button .vjs-icon-placeholder:before{
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
14
43
|
|
|
44
|
+
.vjs-button>.vjs-icon-placeholder:before {
|
|
45
|
+
font-size: 2em !important;
|
|
46
|
+
}
|
|
15
47
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.widget-selection{
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
48
|
+
.video-js.skin_vlone .vjs-control {
|
|
49
|
+
width: 4.3em;
|
|
23
50
|
}
|
|
24
51
|
|
|
25
|
-
.
|
|
26
|
-
|
|
52
|
+
.vjs-menu-button-popup .vjs-menu {
|
|
53
|
+
bottom: 10px !important;
|
|
27
54
|
}
|
|
28
55
|
|
|
29
|
-
.widget-container{
|
|
30
|
-
position: absolute;
|
|
31
|
-
/* height: 528px; */
|
|
32
|
-
width: 350px;
|
|
33
|
-
right: -350px;
|
|
34
|
-
bottom: 0px;
|
|
35
|
-
/* background: #626262; */
|
|
36
56
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
57
|
+
.video-js.skin_vlone .vjs-control-bar .vjs-progress-control.vjs-control:hover {
|
|
58
|
+
height: 1.3em;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: -1.3em;
|
|
61
|
+
transition: height 0.3s, top 0.3s;
|
|
41
62
|
}
|
|
42
63
|
|
|
43
|
-
|
|
44
|
-
|
|
64
|
+
|
|
65
|
+
.video-js.skin_vlone.vjs-live .vjs-time-control{
|
|
66
|
+
display: none !important;
|
|
45
67
|
}
|
|
46
68
|
|
|
47
|
-
.
|
|
48
|
-
|
|
69
|
+
.video-js.skin_vlone .vjs-time-control {
|
|
70
|
+
display: block;
|
|
71
|
+
}
|
|
72
|
+
.video-js.skin_vlone .vjs-remaining-time {
|
|
73
|
+
display: none;
|
|
49
74
|
}
|
|
50
75
|
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
padding-left: 20px;
|
|
56
|
-
margin-bottom: 25px;
|
|
76
|
+
.video-js.skin_vlone .vjs-remaining-time.vjs-time-control.vjs-control>span.vjs-remaining-time-display {
|
|
77
|
+
line-height: 3.5em;
|
|
78
|
+
font-size: 1.1em;
|
|
79
|
+
min-width: 4em;
|
|
57
80
|
}
|
|
58
|
-
|
|
81
|
+
|
|
82
|
+
.video-js.skin_vlone .vjs-time-divider > div{
|
|
59
83
|
display: flex;
|
|
60
|
-
|
|
61
|
-
border-bottom: 2px solid #838996;
|
|
62
|
-
margin-left: 25px;
|
|
63
|
-
width: 80%;
|
|
64
|
-
margin-top: -1px;
|
|
84
|
+
justify-content: center;
|
|
65
85
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
86
|
+
|
|
87
|
+
.video-js.skin_vlone .vjs-live-control{
|
|
88
|
+
align-items: center;
|
|
69
89
|
}
|
|
70
|
-
.
|
|
71
|
-
|
|
90
|
+
.video-js.skin_vlone .vjs-live-display{
|
|
91
|
+
height: 2.2em;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
font-family: monospace;
|
|
95
|
+
width: 4em;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
background: red;
|
|
98
|
+
margin: 4px 0px 4px 12px;
|
|
72
99
|
}
|
|
73
100
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
101
|
+
.video-js.skin_vlone .vjs-time-control {
|
|
102
|
+
line-height: 3.5em !important;
|
|
103
|
+
font-size: 1.1em !important;
|
|
104
|
+
width: min-content !important;
|
|
105
|
+
padding: 0 !important;
|
|
77
106
|
}
|
|
78
107
|
|
|
79
|
-
.
|
|
80
|
-
|
|
108
|
+
.video-js.skin_vlone .vjs-current-time.vjs-time-control.vjs-control {
|
|
109
|
+
margin-left: 20px !important;
|
|
81
110
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
111
|
+
|
|
112
|
+
.video-js.skin_vlone .video-js.skin_vlone .vjs-big-play-button .vjs-icon-placeholder:before {
|
|
113
|
+
top: 4px;
|
|
85
114
|
}
|
|
86
115
|
|
|
87
|
-
|
|
88
|
-
|
|
116
|
+
/* Big play */
|
|
117
|
+
.video-js.skin_vlone.vjs-paused .vjs-big-play-button {
|
|
118
|
+
width: 90px;
|
|
119
|
+
height: 90px;
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
border: none;
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 0;
|
|
126
|
+
left: 0;
|
|
127
|
+
right: 0;
|
|
128
|
+
bottom: 0;
|
|
129
|
+
margin: auto;
|
|
130
|
+
font-size: 6em;
|
|
131
|
+
line-height: 1.3em;
|
|
132
|
+
transform: none !important;
|
|
89
133
|
}
|
|
90
134
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
|
|
135
|
+
|
|
136
|
+
@media(max-width:600px){
|
|
137
|
+
.video-js.skin_vlone button.vjs-big-play-button {
|
|
138
|
+
width: 50px !important;
|
|
139
|
+
height: 50px !important;
|
|
140
|
+
font-size: 2.1rem !important;
|
|
141
|
+
}
|
|
95
142
|
}
|
|
143
|
+
|
|
96
144
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
145
|
+
|
|
146
|
+
.video-js .tvProviderImage {
|
|
147
|
+
position: absolute;
|
|
148
|
+
right: 1rem;
|
|
149
|
+
top: 1rem;
|
|
150
|
+
max-height: 100px;
|
|
151
|
+
max-width: 100px;
|
|
101
152
|
}
|
|
102
153
|
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
text-decoration-thickness: 2px
|
|
154
|
+
.video-js .tvProviderImage>img {
|
|
155
|
+
height: 100%;
|
|
156
|
+
width: 100%;
|
|
107
157
|
}
|
|
108
158
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@media(max-width:600px) {
|
|
162
|
+
.tvProviderImage {
|
|
163
|
+
display: none
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
.video-js .multicamera-parent.default{
|
|
175
|
+
height: 345px;
|
|
176
|
+
position: absolute;
|
|
177
|
+
right: 0;
|
|
178
|
+
bottom: 6rem;
|
|
179
|
+
width: 200px;
|
|
180
|
+
right: 13px;
|
|
181
|
+
opacity: 1;
|
|
182
|
+
overflow: scroll;
|
|
183
|
+
display: grid;
|
|
184
|
+
justify-content: center;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
align-items: center;
|
|
115
187
|
}
|
|
116
188
|
|
|
117
|
-
.
|
|
189
|
+
.video-js .tile{
|
|
190
|
+
height: 103px;
|
|
191
|
+
width: 171px;
|
|
192
|
+
margin-bottom: 1rem;
|
|
193
|
+
background-size: cover !important;
|
|
194
|
+
background-repeat: no-repeat;
|
|
195
|
+
border-radius: 5px;
|
|
118
196
|
}
|
|
119
197
|
|
|
120
|
-
.
|
|
198
|
+
.video-js .tile:hover{
|
|
121
199
|
cursor: pointer;
|
|
122
200
|
}
|
|
123
201
|
|
|
124
|
-
.
|
|
125
|
-
|
|
126
|
-
|
|
202
|
+
.video-js .multicamera-parent:hover{
|
|
203
|
+
opacity: 1 !important;
|
|
204
|
+
background: none;
|
|
127
205
|
}
|
|
128
206
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
207
|
+
|
|
208
|
+
.video-js .multicamera-parent {
|
|
209
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
210
|
+
scrollbar-width: none; /* Firefox */
|
|
211
|
+
}
|
|
212
|
+
.video-js .multicamera-parent::-webkit-scrollbar {
|
|
213
|
+
display: none; /* Safari and Chrome */
|
|
134
214
|
}
|
|
135
215
|
|
|
136
|
-
|
|
137
|
-
|
|
216
|
+
@media (max-width: 600px) {
|
|
217
|
+
.video-js .multicamera-parent.live{
|
|
218
|
+
display: none !important;
|
|
219
|
+
}
|
|
220
|
+
.video-js .multicamera-parent.default{
|
|
221
|
+
display: none !important;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
@media (min-width:601px) and (max-width:900px) {
|
|
227
|
+
.video-js .tile{
|
|
228
|
+
height: 85px;
|
|
229
|
+
width: 150px;
|
|
230
|
+
}
|
|
231
|
+
.video-js .multicamera-parent.live{
|
|
232
|
+
justify-content: center ;
|
|
233
|
+
}
|
|
138
234
|
}
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
.video-js .multicamera-parent.live{
|
|
238
|
+
position: absolute;
|
|
239
|
+
right: 0;
|
|
240
|
+
width: 200px;
|
|
241
|
+
right: 13px;
|
|
242
|
+
opacity: 1;
|
|
243
|
+
overflow: scroll;
|
|
244
|
+
display: grid;
|
|
245
|
+
flex-direction: column;
|
|
246
|
+
align-items: center;
|
|
247
|
+
position: relative;
|
|
248
|
+
right: 0;
|
|
249
|
+
align-content: baseline;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
139
256
|
/* nextep */
|
|
140
257
|
.next-ep-preview{
|
|
141
258
|
position: absolute;
|
|
@@ -196,6 +313,76 @@
|
|
|
196
313
|
margin-left: 8px;
|
|
197
314
|
}
|
|
198
315
|
}
|
|
316
|
+
.video-js.vjs-quality-menu {
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button {
|
|
320
|
+
position: relative;
|
|
321
|
+
}
|
|
322
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button li {
|
|
323
|
+
text-transform: none;
|
|
324
|
+
}
|
|
325
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button.vjs-menu-button-popup .vjs-menu .vjs-menu-content {
|
|
326
|
+
max-height: 25em;
|
|
327
|
+
width: 10em;
|
|
328
|
+
left: 0;
|
|
329
|
+
}
|
|
330
|
+
.video-js.vjs-quality-menu .vjs-menu-item .vjs-control-text {
|
|
331
|
+
position: absolute;
|
|
332
|
+
}
|
|
333
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-wrapper {
|
|
334
|
+
position: relative;
|
|
335
|
+
}
|
|
336
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-wrapper li {
|
|
337
|
+
text-transform: none;
|
|
338
|
+
}
|
|
339
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-wrapper.vjs-menu-wrapper-popup .vjs-menu .vjs-menu-content {
|
|
340
|
+
max-height: 25em;
|
|
341
|
+
width: 10em;
|
|
342
|
+
left: 0;
|
|
343
|
+
}
|
|
344
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-item-sub-label {
|
|
345
|
+
font-size: 75%;
|
|
346
|
+
font-weight: bold;
|
|
347
|
+
position: absolute;
|
|
348
|
+
right: 0;
|
|
349
|
+
text-align: center;
|
|
350
|
+
width: 4em;
|
|
351
|
+
}
|
|
352
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-use-resolution .vjs-quality-menu-item-sub-label {
|
|
353
|
+
position: absolute;
|
|
354
|
+
right: 0;
|
|
355
|
+
text-align: center;
|
|
356
|
+
width: 4em;
|
|
357
|
+
}
|
|
358
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-4K-flag:after, .video-js.vjs-quality-menu .vjs-quality-menu-button-HD-flag:after {
|
|
359
|
+
background-color: #2b333f;
|
|
360
|
+
color: inherit;
|
|
361
|
+
content: "";
|
|
362
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
363
|
+
font-size: 0.7em;
|
|
364
|
+
font-weight: 300;
|
|
365
|
+
height: 2.2em;
|
|
366
|
+
line-height: 2.2em;
|
|
367
|
+
padding: 0;
|
|
368
|
+
position: absolute;
|
|
369
|
+
right: 0;
|
|
370
|
+
text-align: center;
|
|
371
|
+
top: 0.5em;
|
|
372
|
+
width: 2.2em;
|
|
373
|
+
border-radius: 2em;
|
|
374
|
+
letter-spacing: 0.1em;
|
|
375
|
+
}
|
|
376
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-HD-flag:after {
|
|
377
|
+
content: "HD";
|
|
378
|
+
}
|
|
379
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-4K-flag:after {
|
|
380
|
+
content: "4K";
|
|
381
|
+
}
|
|
382
|
+
.video-js.vjs-quality-menu .vjs-quality-menu-button-waiting:before {
|
|
383
|
+
-webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
|
|
384
|
+
animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite;
|
|
385
|
+
}
|
|
199
386
|
/* a wrapper element that tracks the mouse vertically */
|
|
200
387
|
.vjs-thumbnail-holder {
|
|
201
388
|
position: absolute;
|
|
@@ -251,29 +438,8 @@
|
|
|
251
438
|
outline: none;
|
|
252
439
|
}
|
|
253
440
|
|
|
254
|
-
.video-js
|
|
255
|
-
|
|
256
|
-
height: 90px;
|
|
257
|
-
display: flex;
|
|
258
|
-
justify-content: center;
|
|
259
|
-
align-items: center;
|
|
260
|
-
border-radius: 50%;
|
|
261
|
-
position: absolute;
|
|
262
|
-
top: 0;
|
|
263
|
-
left: 0;
|
|
264
|
-
right: 0;
|
|
265
|
-
bottom: 0;
|
|
266
|
-
margin: auto;
|
|
267
|
-
font-size: 6em;
|
|
268
|
-
line-height: 1.3em;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
@media(max-width:600px){
|
|
272
|
-
button.vjs-big-play-button {
|
|
273
|
-
width: 50px !important;
|
|
274
|
-
height: 50px !important;
|
|
275
|
-
font-size: 2.1rem !important;
|
|
276
|
-
}
|
|
441
|
+
.video-js .vjs-loading-spinner{
|
|
442
|
+
margin: 0 !important;
|
|
277
443
|
}
|
|
278
444
|
|
|
279
445
|
/* Chromecast */
|
|
@@ -568,25 +734,6 @@ button.vjs-big-play-button {
|
|
|
568
734
|
.video-js.vjs-playing .bumpable-ima-ad-container {
|
|
569
735
|
margin-top: -4em;
|
|
570
736
|
}
|
|
571
|
-
/* Airplay */
|
|
572
|
-
|
|
573
|
-
.video-js .vjs-airplay-button .vjs-icon-placeholder {
|
|
574
|
-
background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
|
|
575
|
-
background-size: contain;
|
|
576
|
-
display: inline-block;
|
|
577
|
-
width: 18px;
|
|
578
|
-
height: 18px;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.video-js .vjs-airplay-button:hover {
|
|
582
|
-
cursor: pointer;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.video-js .vjs-airplay-button:hover .vjs-icon-placeholder {
|
|
586
|
-
background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
/* Airplay end */
|
|
590
737
|
/* Resolution Module */
|
|
591
738
|
|
|
592
739
|
.video-js .container {
|
|
@@ -647,7 +794,7 @@ button.vjs-big-play-button {
|
|
|
647
794
|
}
|
|
648
795
|
}
|
|
649
796
|
|
|
650
|
-
.video-js .
|
|
797
|
+
.video-js .resolution_hidden {
|
|
651
798
|
opacity: 0;
|
|
652
799
|
visibility: hidden;
|
|
653
800
|
transition: visibility 300ms, opacity 300ms;
|
|
@@ -747,4 +894,23 @@ button.vjs-big-play-button {
|
|
|
747
894
|
/* display: none; */
|
|
748
895
|
}
|
|
749
896
|
|
|
750
|
-
/* Resolution Module End */
|
|
897
|
+
/* Resolution Module End */
|
|
898
|
+
/* Airplay */
|
|
899
|
+
|
|
900
|
+
.video-js .vjs-airplay-button .vjs-icon-placeholder {
|
|
901
|
+
background: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg') center center no-repeat;
|
|
902
|
+
background-size: contain;
|
|
903
|
+
display: inline-block;
|
|
904
|
+
width: 18px;
|
|
905
|
+
height: 18px;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.video-js .vjs-airplay-button:hover {
|
|
909
|
+
cursor: pointer;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.video-js .vjs-airplay-button:hover .vjs-icon-placeholder {
|
|
913
|
+
background-image: url('https://player.viewlift.com/images/ic_airplay_white_24px.svg');
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/* Airplay end */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/classCallCheck"),t=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),a=require("@babel/runtime/helpers/possibleConstructorReturn"),o=require("@babel/runtime/helpers/getPrototypeOf"),i=require("video.js"),r=require("./icons-0ea2e662.js"),c=require("./captions-37b81672.js"),l=require("./skin-aef573bd.js");function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}require("@babel/runtime/helpers/toConsumableArray");var d=i.getComponent("Component"),p=function(){n(v,d);var p,u,m=(p=v,u=s(),function(){var e,t=o(p);if(u){var n=o(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function v(t){var n,a,o,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,v),(i=m.call(this,t,r)).playerId=r.playerId,i.seriesData=r.sres,i.currentVideoData=r.res,i.initialiseStructure(),i.loadCSS(),null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important"),i}return t(v,[{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(r.CaptionsSvgV2())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){Promise.resolve().then((function(){return require("./caption-settings-34ca0188.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=c.getCaptions(this.playerId);null==t||t.map((function(t){return c.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 t;null!==(t=a.classList)&&void 0!==t&&t.contains("hidden")?(l.closeOpenDrawers(),a.classList.remove("hidden"),n.classList.add("open"),a.style.right="0px",l.setUpdatedElHeight(e.playerId,a)):(a.classList.add("hidden"),n.classList.remove("open"),a.style.right="-350px")};var o=document.getElementById(this.playerId);if(o){var r=window.getComputedStyle(o,null).getPropertyValue("height");a.style.height="".concat(r),i.dom.appendContent(n,a),o.style.overflow="hidden",this.addFunctionality(a),l.detectOrientationChange(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),n=i.dom.createEl("div",{className:"caption-selector-head"}),a=i.dom.createEl("div",{className:"caption-selector-cross-icon",innerHTML:"".concat(r.crossIconSvg())});a.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var o=i.dom.createEl("div",{className:"caption-selector-title",innerHTML:"Captions"}),c=i.dom.createEl("div",{className:"caption-selector-content"}),s=i.dom.createEl("div",{className:"caption-container"}),d=this.createLanguageContanier();i.dom.appendContent(s,d),i.dom.appendContent(n,a),i.dom.appendContent(n,o),i.dom.appendContent(e,n),i.dom.appendContent(e,c),i.dom.appendContent(c,s),l.handleDrawerResizing(this.playerId,e)}},{key:"createLanguageContanier",value:function(){var e=this,t=i.dom.createEl("div",{className:"caption-language-container"}),n=i.dom.createEl("div",{className:"caption-language-container-title",innerHTML:"Language"});i.dom.appendContent(t,n);var a=document.createElement("label");a.setAttribute("for","radio-off"),a.className="caption-language-holder";var o=document.createElement("div");o.className="caption",o.innerHTML="Off";var r=i.dom.createEl("input",{className:"radio - off",id:"radio-off",name:"language-radio",checked:"true"});r.setAttribute("type","radio"),r.onchange=function(t){var n,a,o;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(n=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===n||null===(a=n[0])||void 0===a||null===(o=a.style)||void 0===o||o.setProperty("display","none","important")),c.getCaptions(e.playerId).map((function(t){return c.disableCaptions(e.playerId,t.id)}))},i.dom.appendContent(a,r),i.dom.appendContent(a,o),i.dom.appendContent(t,a);for(var l=c.getCaptions(this.playerId),s=function(n){var a,o=document.createElement("label");o.className="caption-language-holder",o.setAttribute("for","language-radio-".concat(n));var r=document.createElement("div");r.className="caption - ".concat(n),r.textContent=null==l||null===(a=l[n])||void 0===a?void 0:a.label;var s=i.dom.createEl("input",{className:"radio - ".concat(n),id:"language-radio-".concat(n),name:"language-radio"});s.onchange=function(t){c.enableCaptions(e.playerId,l[n].id)},s.setAttribute("type","radio"),i.dom.appendContent(o,s),i.dom.appendContent(o,r),i.dom.appendContent(t,o)},d=0;d<l.length;d++)s(d);return t}},{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,r=document.createElement("label");r.className="caption-font-holder",r.setAttribute("for","font".concat(a));var c=document.createElement("div");c.className="fontsize - ".concat(a),c.textContent=(null==n||null===(o=n[a])||void 0===o?void 0:o.size)+"pt";var l=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)});l.setAttribute("type","radio"),l.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(r,l),i.dom.appendContent(r,c),i.dom.appendContent(e,r)}return e}}]),v}();exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./skin-aef573bd.js");exports.addCaptions=function(e,n){var a=t.getPlayer(e);a.remoteTextTracks().tracks_.map((function(t){a.removeRemoteTextTrack(t)})),n.map((function(t){a.addRemoteTextTrack({src:t.url,srcLang:t.language,label:t.language})}))},exports.disableCaptions=function(e,n){for(var a=t.getPlayer(e).textTracks(),r=0;r<a.length;r++){var s=a[r];"subtitles"!==s.kind&&"captions"!==s.kind||s.id!==n||(s.mode="hidden")}},exports.enableCaptions=function(e,n){var a,r,s;document.getElementsByClassName("vjs-text-track-display-ttml")&&(null===(a=document.getElementsByClassName("vjs-text-track-display-ttml"))||void 0===a||null===(r=a[0])||void 0===r||null===(s=r.style)||void 0===s||s.setProperty("display","flex"));for(var i=t.getPlayer(e).textTracks(),l=0;l<i.length;l++){var o=i[l];"subtitles"!==o.kind&&"captions"!==o.kind||o.id!=n||(o.mode="showing")}},exports.getCaptions=function(e){var n,a=t.getPlayer(e);return(null==a||null===(n=a.textTracks())||void 0===n?void 0:n.tracks_.filter((function(t){return"subtitles"==t.kind||"captions"===t.kind})))||[]},exports.removeCaptions=function(e){var n=t.getPlayer(e);n.remoteTextTracks().tracks_.map((function(t){"subtitles"==(null==t?void 0:t.kind)||null==t||t.kind,n.removeRemoteTextTrack(t)}))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/classCallCheck"),r=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/inherits"),o=require("@babel/runtime/helpers/possibleConstructorReturn"),l=require("@babel/runtime/helpers/getPrototypeOf"),i=require("video.js"),a=require("./generic-cdde2bcb.js"),s=require("./renditions-fd408798.js"),d=require("./skin-aef573bd.js"),c=require("./localisation-56e0a999.js");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?u(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(e){var t=v();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}exports.addCaptionButton=function(e,t){Promise.resolve().then((function(){return require("./caption-settings-a355bdc9.js")})).then((function(r){var n,o,l,a,s=r.default,c=d.getPlayer(e);i.registerComponent("captionSelector",s),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("caption-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("captionSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},exports.addDBClickFullScreen=function(e){var t=d.getPlayer(e).el(),r=0,n=d.getPlayer(e);n.addChild("fullscreenToggle");var o=function(){var e,r=null==t||null===(e=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===e?void 0:e[0];r&&r.click()};n.el().addEventListener("dblclick",o),window._multiplayer_dbClickHandler=o;n.el().addEventListener("touchend",(function(){var e=(new Date).getTime(),n=e-r;if(n<300&&n>0){var o,l=null==t||null===(o=t.getElementsByClassName("vjs-fullscreen-control"))||void 0===o?void 0:o[0];l&&l.click()}r=e})),window._multiplayer_dbTapHandler=o},exports.addMulticamSelector=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-f7b818dc.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addMulticamSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./multicamv2-114b8211.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("streamSelector",n),o.getChild("controlBar").addChild("streamSelector",{playerId:e,streams:t},o.controlBar.children().length-4)}))},exports.addNextEpisodeButton=function(e,t,r){Promise.resolve().then((function(){return require("./nextEpisodeButton-9196ac36.js")})).then((function(n){var o=n.default,l=d.getPlayer(r);i.registerComponent("nextEpisodeButtonModule",o),l.getChild("controlBar").addChild("nextEpisodeButtonModule",{playerId:r,sres:e,res:t},l.controlBar.children().length-5)}))},exports.addOutputtingOverlay=function(e,t){var r=d.getPlayer(e).el(),n=i.dom.createEl("div",{className:"output-overlay",innerHTML:'<iframe frameBorder="0" src='.concat(t,"></iframe>")});r.append(n)},exports.addPlaylistSelector=function(e,t){Promise.resolve().then((function(){return require("./playlist-8009c8ee.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("playlistSelector",n),o.getChild("controlBar").addChild("playlistSelector",{playerId:e,playlist:t},o.controlBar.children().length-3)}))},exports.addResolutionModule=function(e,t,r){Promise.resolve().then((function(){return require("./resolution-c59e995e.js")})).then((function(n){var o=n.default;document.getElementById(e).getElementsByClassName("container")[0]&&document.getElementById(e).getElementsByClassName("container")[0].remove();var l=d.getPlayer(e),a=s.getRenditions(e);(null==a?void 0:a.length)>0&&(i.registerComponent("resolutionModule",o),l.getChild("controlBar").addChild("resolutionModule",{playerId:e,skin:t,icon:r,renditions:a},l.controlBar.children().length-4))}))},exports.addRewindButton=function(e,o,l){var s=function(o){n(s,o);var i=p(s);function s(e,r){var n;t(this,s);var o=(n=i.call(this,e,r)).el_;o.classList.add("vjs-rewind-button");var a=d.parseSvgString(l);return o.append(a),n}return r(s,[{key:"handleClick",value:function(){a.rewind(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSeriesModule=function(e,t,r){Promise.resolve().then((function(){return require("./series-099e6737.js")})).then((function(n){var o=n.seriesModule,l=d.getPlayer(e);i.registerComponent("seriesModule",o),l.getChild("controlBar").addChild("seriesModule",{playerId:e,seriesData:t},l.controlBar.children().length-4);for(var a=document.querySelectorAll(".season-title-sdk"),s=function(e){a[e].addEventListener("click",(function(){t[e]&&n.handleSeasonChange(t[e],e,l,r)}))},c=0;c<a.length;c++)s(c)}))},exports.addSeriesSelectorV2=function(e,t){Promise.resolve().then((function(){return require("./series-v2-167d4ba9.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)}))},exports.addSeriesSelectorV2_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./series-v2-04472382.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("seriesV2",n),o.getChild("controlBar").addChild("seriesV2",h({playerId:e},t),o.controlBar.children().length-3)}))},exports.addSettingsButtonV2=function(e,t){Promise.resolve().then((function(){return require("./settings-icon-bef54795.js")})).then((function(r){var n,o,l,a,s=r.default,c=d.getPlayer(e);i.registerComponent("settingsSelector",s),null===(n=document)||void 0===n||null===(o=n.getElementById(e))||void 0===o||null===(l=o.getElementsByClassName("settings-selection vjs-control vjs-button"))||void 0===l||null===(a=l[0])||void 0===a||a.remove(),c&&c.getChild("controlBar").addChild("settingsSelector",{playerId:e,options:t},c.controlBar.children().length-3)}))},exports.addSkipButton=function(e,o,l){var s=function(o){n(s,o);var i=p(s);function s(e,r){var n;t(this,s);var o=(n=i.call(this,e,r)).el_;o.classList.add("vjs-skip-button");var a=d.parseSvgString(l);return o.append(a),n}return r(s,[{key:"handleClick",value:function(){a.skip(e,10)}}]),s}(i.getComponent("Button"));i.registerComponent("MyButton",s),i(e).getChild("controlBar").addChild("myButton",{},1)},exports.addSlowMotion=function(e){var o=function(e){n(i,e);var o=p(i);function i(e,r){var n;t(this,i);var l=(n=o.call(this,e,r)).el_;return l.classList.add("vjs-slowmo-button"),l.textContent=c.getLocalisation("slowMoText")||"Slow Mo",n}return r(i,[{key:"handleClick",value:function(){1==l.playbackRate()?(l.playbackRate(.5),this.el().style.background="darkgray"):(l.playbackRate(1),this.el().style.background="none")}}]),i}(i.getComponent("Button"));i.registerComponent("MyButton",o);var l=i(e);l.getChild("controlBar").addChild("myButton",{},2)},exports.addVideoSelector=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-79c01024.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))},exports.addVideoSelector_DEFAULTV2_TEMP=function(e,t){Promise.resolve().then((function(){return require("./videoSelector-1c333845.js")})).then((function(r){var n=r.default,o=d.getPlayer(e);i.registerComponent("videoSelector",n),o.getChild("controlBar").addChild("videoSelector",{playerId:e,related:t},o.controlBar.children().length-3)}))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/asyncToGenerator"),n=require("@babel/runtime/regenerator"),i=require("video.js"),o=require("axios"),r=require("./skin-aef573bd.js"),a=require("./browser-77c57718.js"),l=require("js-cookie"),d=require("ua-parser-js"),u=require("./captions-37b81672.js"),s={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel"};function c(){var e,t;null===(e=window)||void 0===e||null===(t=e.dataLayer)||void 0===t||t.push(arguments)}function v(e,t){c("event",e,t)}var m=function(e){var t=JSON.parse(atob(null==e?void 0:e.split(".")[1])),n=null==t?void 0:t.exp;if(new Date(1e3*n).getTime()<(new Date).getTime())return!0},f=null;function p(){return{set:function(e){e&&(f=e)},get:function(){return f}}}var w,g,I,E,h,T,y=function(){var e=t(n.mark((function e(){var t,i,o;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p().get(),i=getBaseUrl(),e.prev=2,e.next=5,axios({method:"GET",url:"".concat(i,"/identity/refresh/").concat(t)});case 5:return o=e.sent,e.abrupt("return",o);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),b=null,_=function(){var e=t(n.mark((function e(){var t;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=sessionStorage.getItem("vlp_token"))||!m(t)){e.next=6;break}return b||(b=y().then((function(e){var n,i,o=null==e||null===(n=e.data)||void 0===n?void 0:n.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&p().set(r),o||t})).catch((function(e){return console.error("Error fetching refresh token",e),t})).finally((function(){b=null}))),e.abrupt("return",b);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},O=function(e){g=e},F=function(){return g},P=function(){return w},S=function(e){I=e},L=function(e){if(E){var t=E.get(e);S(t+1)}},V=(T=0,{set:function(e){e>=0&&(T=e)},get:function(){return T}});function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function W(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?R(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var A=function(){var e,t,n,i,o,r,a,l=F();return"linearchannel"==((null==l?void 0:l.contentType)||"video")?null==l||null===(e=l.linearchannel)||void 0===e||null===(t=e.channels)||void 0===t||null===(n=t.find((function(e){return(null==e?void 0:e.id)===(null==l?void 0:l.channelId)})))||void 0===n||null===(i=n.content)||void 0===i?void 0:i.id:(null==l||null===(o=l.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==l||null===(a=l.video)||void 0===a?void 0:a.id)};function C(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function x(){var e=window.sessionStorage.getItem("uid");return e||(e=C(),window.sessionStorage.setItem("uid",e),e)}function N(){return B.apply(this,arguments)}function B(){return(B=t(n.mark((function e(){var t,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:if(!(t=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(t.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}window.initialise=function(e){window.sid=C(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var t=Math.floor(e.currentTime());e.on("error",(function(){var n,i,o,r=Math.floor(e.currentTime());v(r?"FAILED_TO_START":"DROPPED_STREAM",W({pfm:window.platform,uid:x(),vid:A(),videoPosition:Math.floor(e.currentTime())},null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:t===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})}))},window.firstFrame=function(e){e.one("play",tryCatch((function(){var t,n,i;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval((function(){window.ttFirstFrame=window.handleBufferTimer(window.ttFirstFrame,e)}),100),v("PLAY",W({pfm:window.platform,uid:x(),vid:A(),videoPosition:Math.floor(e.currentTime())},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})))},window.buffering=function(e){e.on("waiting",tryCatch((function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval((function(){var t,n;null!=e&&null!==(t=e.el_)&&void 0!==t&&null!==(n=t.className)&&void 0!==n&&n.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=handleBufferTimer(window.totalBufferTime,e):clearInterval(window.bufferingTimer)}),100))})))},window.handleBufferTimer=function(e,t){var n,i;if(t.el_){var o,r,a,l=e+.1;if(+l.toFixed(2)%5==0&&null!=t&&null!==(n=t.el_)&&void 0!==n&&null!==(i=n.className)&&void 0!==i&&i.includes("vjs-waiting"))v("BUFFERING",W({pfm:window.platform,uid:x(),vid:A(),videoPosition:t.el_&&Math.floor(t.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"BUFFERING",videoPosition:t.el_&&Math.floor(t.currentTime()),isAdEvent:!1});return l}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",(function(){var t,n,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,v("FIRST_FRAME",W({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:x(),vid:A()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})}))},window.ads=function(e){e.on("adsready",(function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,(function(){var t,n,i,o,r,a;v("AD_REQUEST",W({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:x(),vid:A(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),v("AD_IMPRESSION",W({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:x(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:A()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})})),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,(function(){window.ttFirstFrame=0})),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,(function(){window.ttFirstFrame=0}))}))},window.ping=function(e){var t=[];e.on("timeupdate",(function(){var n=Math.floor(e.currentTime());n>=30&&n%30==0&&!t.includes(n)&&(t.push(n),fireEvent({eventName:"PING",videoPosition:n,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))}))},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch((function(){for(var t=e.currentTime(),n=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),a=i.end(o);if(j(t,r,a)){var l=Math.round(n-a);if(isFinite(l))return l}}}))()};var j=function(e,t,n){return e>=t&&e<=n};window.fireEvent=function(){var e=t(n.mark((function e(t){var i,r,a,l,d,u,s,c,v,m,f,p,w,g;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:return m=e.sent,f=D(m),p=null==f?void 0:f.site,w=null==f?void 0:f.siteId,e.t0=W,e.t1=W,e.t2=W({aid:p,cid:w,pfm:window.platform},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params),e.t3={},e.t4=x(),e.t5=A(),e.t6=t.url||document.location.href,e.t7=t.ref||document.referrer,e.t8=t.eventName,e.t9=t.videoPosition,e.t10=window.environment,e.t11=t.dp1||"",e.t12=t.dp2||"",e.t13=t.dp3||"",e.t14=t.dp4||"",e.t15=t.dp5||"",e.t16=!0===t.isAdEvent?t.videoPosition:"",e.t17=!0===t.isAdEvent?(n=t.adPosition)?String(n):"":"",e.next=26,N();case 26:e.t18=e.sent,e.t19=t.playerType||"native",e.t20=t.mediaType||"VIDEO",e.t21=window.sid,e.t22=t.ttFirstFrame,e.t23=t.bitrate,e.t24=t.resHeight,e.t25=t.resWidth,e.t26=t.bufferHealth,e.t27={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:"",resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26},e.t28=(null==t?void 0:t.duration)&&{duration:t.duration},e.t29=(0,e.t1)(e.t2,e.t3,e.t27,e.t28),e.t30=null===(l=window)||void 0===l||null===(d=l.customData)||void 0===d||null===(u=d.beacon)||void 0===u?void 0:u.params,e.t31=(0,e.t0)(e.t29,e.t30),g=[e.t31],o({url:(null===(s=window)||void 0===s||null===(c=s.customData)||void 0===c||null===(v=c.beacon)||void 0===v?void 0:v.url)||"https://1a7ahu122g.execute-api.us-east-1.amazonaws.com/production_beacon/firehouse-proxy",method:"post",headers:{Authorization:m},contentType:"application/x-www-form-urlencoded",dataType:"text",data:g}).catch((function(e){console.error(e)}));case 42:case"end":return e.stop()}var n}),e)})));return function(t){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function U(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?M(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var k={name:"@viewlift/player8",version:"1.0.110",main:"dist/bundle.cjs.js",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","video.js":"^8.21.1","videojs-contrib-ads":"^7.5.2","videojs-contrib-eme":"^5.5.1","videojs-contrib-quality-menu":"^1.0.3"}};window.vl_player_version=k.version;var H,G=function(e,t){var n,i,r,a,l,d,u,c;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):o({url:null!==(l=window)&&void 0!==l&&null!==(d=l.customData)&&void 0!==d&&d.overrideEntitlementBaseUrl?(null===(u=window)||void 0===u||null===(c=u.customData)||void 0===c?void 0:c.overrideEntitlementBaseUrl)+"/video/status":X.get()+"".concat(null==s?void 0:s.getVideoDetails),params:U({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t,"Sdk-Version":k.version},withCredentials:!0})},z=function(e,t){var n,i,r,a;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.overrideEntitlementResponse})})):o({url:X.get()+s.getLinearChannelDetails,params:U(U(U(U(U({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:t}})},q=function(){var e=t(n.mark((function e(t){var i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,getToken();case 2:return i=e.sent,e.abrupt("return",o({url:X.get()+"".concat(null==s?void 0:s.saveWatchHistoryV2),method:"POST",headers:{Authorization:i},data:U({},t),params:U({},(null==t?void 0:t.profileId)&&{profileId:null==t?void 0:t.profileId})}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(e,t){var n,i,r=window.contentType;return o({method:"GET",url:X.get()+"".concat(null==s?void 0:s.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:t,"x-api-key":null===(n=window)||void 0===n||null===(i=n.watchHistory)||void 0===i?void 0:i.xApiKey},timeout:15e3})},X=(H=null==s?void 0:s.apiBaseUrl,{set:function(e){e&&(H=e)},get:function(){return H}}),J=function(e,t){if(Promise.resolve().then((function(){return require("./error-26d5a3c3.js")})).then((function(e){var t=document.createElement("style");t.id="errorblock",t.append("".concat(e.default)),document.head.appendChild(t)})),document.getElementsByClassName("error-container")[0]){var n=document.getElementsByClassName("error-message")[0];n&&(n.innerHTML="".concat(t))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(t),o.appendChild(r),i.append(o)}}},K=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Z(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}window._deviceInfo=d(navigator.userAgent);var $=function(e,t){return e&&t?"".concat(e,"x").concat(t):e>1024?"L":e>768?"M":"S"},ee=function(e){var t=te(e,"video.tags",[]),n=te(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return t.length>0?t.map((function(e){return e.title})).join(","):n},te=function(e,t,n){for(var i=0,o=(t=t.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[t[i]]}return e||n},ne=function(){var e,t,n,i,o,a,d,u,s,c,v,m,f,p,w,g,I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",E=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0,T=(null==h?void 0:h.contentType)||"video",y=null==h||null===(e=h[T])||void 0===e?void 0:e.metadata,b=r.getPlayer(E);if(!I.includes("VIEWLIFT_"))return I;var _=window.getComputedStyle(document.getElementById(E),null),D=Math.trunc(_.getPropertyValue("height").slice(0,-2)),O=Math.trunc(_.getPropertyValue("width").slice(0,-2)),F="linearchannel"===T?null==h||null===(t=h.linearchannel)||void 0===t||null===(n=t.channels)||void 0===n||null===(i=n.find((function(e){return(null==e?void 0:e.id)===(null==h?void 0:h.channelId)})))||void 0===i||null===(o=i.content)||void 0===o?void 0:o.id:te(h,"video.gist.id",""),P=Z(Z({},re(y)),{},{VIEWLIFT_WIDTH:O,VIEWLIFT_HEIGHT:D,VIEWLIFT_SIZE:$(O,D),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(a=window)||void 0===a?void 0:a.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:te(h,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:te(h,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:te(h,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==b||null===(d=b.options_)||void 0===d?void 0:d.autoplay)||1,VIEWLIFT_MUTE:(null==b||null===(u=b.options_)||void 0===u?void 0:u.autoplay)||0,VIEWLIFT_DEVICE_ID:localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"WEB_BROWSER",VIEWLIFT_KEYWORDS:ee(h),VIEWLIFT_MEDIA_ID:F,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(te(h,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:F,VIEWLIFT_VIDEO_URL:encodeURI(window.location.host+te(h,"video.gist.permalink","")),VIEWLIFT_CONSENT:l.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:te(null===(s=window)||void 0===s||null===(c=s.app_data)||void 0===c||null===(v=c.site)||void 0===v?void 0:v.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR:te(null===(m=window)||void 0===m||null===(f=m.app_data)||void 0===f||null===(p=f.site)||void 0===p?void 0:p.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*te(h,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:te(h,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:F,VIEWLIFT_CONTENT_TITLE:te(h,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),VIEWLIFT_CONTENT_SERIES_TITLE:te(h,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:te(h,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:oe(),VIEWLIFT_SEASON_NUMBER:ie(),VIEWLIFT_CONTENT_TAGS:ee(h)},null===(w=window)||void 0===w||null===(g=w.customData)||void 0===g?void 0:g.macros);for(var S in P){var L=new RegExp(S,"g");I=I.replace(L,P[S])}return I},ie=function(){var e=V.get();return e>=0?e+1:1},oe=function(){var e,t,n,i=P(),o=F(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,a=V.get(),l=null==i||null===(t=i[a])||void 0===t||null===(n=t.episodes)||void 0===n?void 0:n.findIndex((function(e){return(null==e?void 0:e.id)===r}));return l>=0?l+1:1},re=function(e){var t,n,i,o,r,l,d={},u=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map((function(e){u.set(e.name,e.value)})));var s=(null===(t=window)||void 0===t||null===(n=t.customData)||void 0===n||null===(i=n.subscription)||void 0===i?void 0:i.SVOD)||!1,c=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return s||c?(a.isMobile()?s?d=Z(Z({},d),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||""}):c&&(d=Z(Z({},d),{},{VIEWLIFT_CSID:u.get("csid.mweb.tve")||""})):s?d=Z(Z({},d),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||""}):c&&(d=Z(Z({},d),{},{VIEWLIFT_CSID:u.get("csid.web.tve")||""})),s?d=Z(Z({},d),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||""}):c&&(d=Z(Z({},d),{},{VIEWLIFT_SFID:u.get("sfid.tve")||""})),d=a.isMobile()?Z(Z({},d),{},{VIEWLIFT_PROF:u.get("prof.mweb")||""}):Z(Z({},d),{},{VIEWLIFT_PROF:u.get("prof.web")||""})):(d=Z(Z({},d),{},{VIEWLIFT_SFID:u.get("sfid.dtc")||""}),d=a.isMobile()?Z(Z({},d),{},{VIEWLIFT_CSID:u.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:u.get("prof.mweb")||""}):Z(Z({},d),{},{VIEWLIFT_CSID:u.get("csid.web.dtc")||"",VIEWLIFT_PROF:u.get("prof.web")||""})),d},ae=function(e,t){var n,i,o,r,l,d,u,s,c,v,m,f,p,w=(null==e?void 0:e.contentType)||"video",g=null==e||null===(n=e[w])||void 0===n?void 0:n.drmEnabled,I=null==e||null===(i=e[w])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(r=e[w])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.audioAssets,h=(null==e||null===(d=e[w])||void 0===d||null===(u=d.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.hls)||!1;null==e||null===(c=e[w])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var T=(null==e||null===(m=e[w])||void 0===m||null===(f=m.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return de(E);if(g){var y=ue(I,t);return y.src=ne(y.src,t,e),y}if("Safari"!==a.detectBrowser()&&T)return le(I);if(h){var b=de(I);return b.src=ne(b.src,t,e),b}if(null!=I&&I.mpeg){var _=function(e){var t=null==e?void 0:e.mpeg;return{src:t[t.length-1].url,type:"video/mp4"}}(I);return _.src=ne(_.src,t,e),_}return null},le=function(e){var t=null==e?void 0:e.dash;return t?{src:t,type:"application/dash+xml"}:null},de=function(e){var t=null==e?void 0:e.hls;return t?{src:t,type:"application/x-mpegURL"}:null},ue=function(e,t){var n=e.fairPlay,o=e.widevine,l=e.playReady,d=a.detectBrowser();if(r.getPlayer(t),"Safari"===d){var u=function(e){var t=e.url;return{src:t,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(t,n){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};console.log("🔐 Requesting FairPlay Certificate...",o),i.xhr(o,(function(e,t,i){console.log(e),e&&n(e),n(null,new Uint8Array(i))}))},getContentId:function(e,t){if(t){var n=t.indexOf("\0")+1;return t.slice(n)}},getLicense:function(t,n,o,r){var a={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};i.xhr(a,(function(e,t,n){console.log(e),e&&r(e),r(null,n)}))}}}}}(n);return se(t),u}var s={src:o.url,type:"application/dash+xml"};return se(t),s.keySystems={"com.widevine.alpha":{url:o.licenseUrl,licenseHeaders:{"X-AxDRM-Message":o.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}},s};var se=function(e){var t=r.getPlayer(e);if("function"==typeof t.eme)try{t.eme(),"Safari"==a.detectBrowser()&&t.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},ce=!1,ve=function(e,t,n){var i=ne(t,e,n),o=r.getPlayer(e);if(t&&window.google){if("function"!=typeof o.ima)return;o.ima.initializeAdDisplayContainer&&o.ima.initializeAdDisplayContainer(),function(e,t){var n,i,o,a=r.getPlayer(e);if(null!==a.el_){ce=!0;var l={id:e,adTagUrl:"".concat(t),adLabel:"Your video will resume after this sponsor message"};a.ima.initializeAdDisplayContainer&&a.ima.initializeAdDisplayContainer(),ce&&null!==a.el_&&("function"==typeof a.ima?a.ima(l):setTimeout((function(){a.ima.setContentWithAdTag(null,t,!0),a.ima.requestAds()}),1e3));var d=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&d.hasAttribute("controls")&&d.removeAttribute("controls");var u="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,u="touchend"),a.one(u,(function(){s&&a.ima.initializeAdDisplayContainer()}));var c=(null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i||null===(o=i.ads)||void 0===o?void 0:o.adEventHandler)||null;a.one("ads-ad-started",(function(){c&&c({status:"STARTED",msg:"Advertisement Started"})})),a.one("ads-manager",(function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,(function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}))})),a.on("adserror",(function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})}))}}(e,i)}};function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var fe=function(e){return!!i.getPlayer("".concat(e))},pe=function(){var e=t(n.mark((function e(t,i){var o,a,l,d=arguments;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>2&&void 0!==d[2]&&d[2],e.next=3,_();case 3:return a=e.sent,l=r.getPlayer(t),e.abrupt("return",new Promise((function(e,n){z(i,a).then((function(n){var r=null==n?void 0:n.data;window.sid=C(),r.contentType="linearchannel",r.channelId=null==i?void 0:i.channelId;var a=ae(r,t);O(r),a&&o?(Ie(t,a),l.on("loadstart",(function(){e({status:!0,msg:"Feed authenticated and loaded",response:r})}))):e({status:!0,msg:"Feed authenticated",response:r})})).catch((function(e){n({status:!1,msg:"Cannot load feed",response:e})}))})));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),we=function(){var e=t(n.mark((function e(t,i,o){var a,l,d,s,c,v;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:return s=e.sent,(P()||null)&&L(i),c=0,v=0,null!==(a=window)&&void 0!==a&&a.watchHistory&&null!==(l=window)&&void 0!==l&&null!==(d=l.watchHistory)&&void 0!==d&&d.enable&&Y(i,s).then((function(e){var t,n,i,o,r,a;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),c=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,v=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null})).catch((function(e){var t,n,i,o;null!==(t=window)&&void 0!==t&&null!==(n=t.watchHistory)&&void 0!==n&&n.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))})),e.abrupt("return",new Promise((function(e,n){G(i,s).then((function(i){var o,a,l,d,s,m,f,p,w,g,I=null==i?void 0:i.data,E=(null==I||null===(o=I.video)||void 0===o||null===(a=o.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1;O(i.data);var h=(null==I||null===(l=I.ads)||void 0===l||null===(d=l.preRoll)||void 0===d||null===(s=d.adTags)||void 0===s||null===(m=s.web)||void 0===m?void 0:m.active)&&(null==I||null===(f=I.ads)||void 0===f||null===(p=f.preRoll)||void 0===p||null===(w=p.adTags)||void 0===w||null===(g=w.web)||void 0===g?void 0:g.url);h&&ve(t,h,I);var T=ae(I,t);if(T){var y,b,_,D,F,P,S,L,V,R,W,A,C,x,N=(null==I||null===(y=I.video)||void 0===y||null===(b=y.gist)||void 0===b?void 0:b.videoImageUrl)||(null==I||null===(_=I.video)||void 0===_||null===(D=_.gist)||void 0===D||null===(F=D.imageGist)||void 0===F?void 0:F.r16x9),B=r.getPlayer(t);if(B.poster(N),Ie(t,T),B.on("loadstart",(function(){E&&e({status:!0,msg:"Video Loaded",response:I})})),B.on("loadeddata",(function(){K(),e({status:!0,msg:"Video Loaded",response:I})})),B.one("play",(function(){c&&v<95&&setTimeout((function(){B.currentTime(c)}),0)})),B.one("error",(function(){var e;n({status:!1,msg:(null==B||null===(e=B.error())||void 0===e?void 0:e.message)||"Some error occured"})})),(null==I||null===(P=I.video)||void 0===P||null===(S=P.contentDetails)||void 0===S||null===(L=S.closedCaptions)||void 0===L?void 0:L.length)>0||(null==I||null===(V=I.video)||void 0===V||null===(R=V.closedCaptions)||void 0===R?void 0:R.length)>0)W=((null==I||null===(A=I.video)||void 0===A||null===(C=A.contentDetails)||void 0===C?void 0:C.closedCaptions)||(null==I||null===(x=I.video)||void 0===x?void 0:x.closedCaptions)).filter((function(e){return"VTT"===e.format})),u.addCaptions(t,W);else u.removeCaptions(t)}else J(t,"Incompatible Source, only hls,mp4,drm content is allowed"),n("Incompatible Source, only hls,mp4,drm content is allowed")})).catch((function(e){Ee(e,t,n,i)}))})));case 9:case"end":return e.stop()}}),e)})));return function(t,n,i){return e.apply(this,arguments)}}(),ge=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},Ie=function(e,t){var n=r.getPlayer(e);n&&n.src(t)},Ee=function(t,n,i,o){var r,a,l,d,u,s,c=null==t||null===(r=t.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.errorCode,v=(null==t||null===(l=t.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.errorMessage)||(null==t?void 0:t.message);fe(n)&&J(n,(null===(u=window)||void 0===u?void 0:u.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),i&&i(function(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?me(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):me(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({status:!1,response:t,msg:"".concat(v)},o&&{videoId:o}))};exports.authenticateLC=pe,exports.baseUrlManager=X,exports.clearError=K,exports.createIdxMapping=function(e){E=new Map,e.map((function(e,t){E.set(e.id,t)}))},exports.disableControls=function(e){var t=document.getElementById(e),n=t.getElementsByClassName("vjs-control-bar")[0];n&&(n.style.visibility="hidden");var i=t.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=t.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")},exports.dispose=function(e){var t=r.getPlayer(e);if(ge(),r.clearEventListeners(),window.onresize=null,t)t.dispose();else{var n=document.getElementById(e);n&&n.remove()}},exports.getCurrentSeries=P,exports.getCurrentVideo=F,exports.getEntitlementData=function(e,t,n){return o({url:n,params:{id:e,deviceType:"web_browser",contentConsumption:"web"},method:"GET",headers:{Authorization:t},withCredentials:!0})},exports.getLinearChannelDetails=z,exports.getSeriesDetails=function(e,t){var n,i,r=D(t),a=(null==r?void 0:r.site)||null;return null!==(n=window)&&void 0!==n&&null!==(i=n.customData)&&void 0!==i&&i.seriesData?new Promise((function(e,t){var n,i;return e({data:null===(n=window)||void 0===n||null===(i=n.customData)||void 0===i?void 0:i.seriesData})})):o({url:X.get()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:t}})},exports.getSeriesWatchHistory=function(e){var t=e.videoId;return o({method:"GET",url:X.get()+"".concat(null==s?void 0:s.getSeriesWatchHistoryV2,"/").concat(t),headers:{Authorization:e.token},timeout:15e3})},exports.getSeriesWatchMap=function(){return h},exports.getSource=ae,exports.getUpdatedClusterSource=function(e,t){var n=e.src,i=e.type;if(!n||"string"!=typeof n||!n.includes(".com"))return{src:n,type:i};t=t.replace(/\/$/,"");var o=n.split(".com")[1]||"";return{src:o?"".concat(t).concat(o):n,type:i}},exports.getVideoDetails=G,exports.getVideoIdx=function(){return I},exports.getVideoInfo=Y,exports.handleError=J,exports.initialiseAdvertisement=ve,exports.initiateErrorHandling=Ee,exports.inititateBeacon=function(e){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var t=r.getPlayer(e);window.initialise(t),window.firstFrame(t),t.on("loadedmetadata",(function(){window.endFirstFrame(t)}))}},exports.isPaused=function(e){return i(e).paused()},exports.isPlayerInitialised=fe,exports.isTokenExpired=m,exports.load=we,exports.loadVideo=Ie,exports.loadVideoInstantly=function(e,t,n){var i=r.getPlayer(e);return i.src(t),new Promise((function(e,t){var o=0;i.one("loadedmetadata",(function(){clearTimeout(o),e({status:!0,msg:"video loaded"})})),i.one("loadstart",(function(e){o=setTimeout((function(){t("FAILED: Took too long to load")}),n)}))}))},exports.pause=function(e){i(e).pause()},exports.play=function(e){i(e).play()},exports.refreshTokenManager=p,exports.rewind=function(e,t){var n=i(e),o=n.currentTime(),r=o<=t?0:o-t;n.currentTime(r)},exports.runGtag=function(e){window.dataLayer=window.dataLayer||[],c("js",new Date),c("config",e)},exports.saveWatchHistory=q,exports.seasonIdxManager=V,exports.setCurrentSeries=function(e){w=e},exports.setCurrentVideo=O,exports.setSeriesWatchMap=function(e){h=e},exports.setVideoIdx=S,exports.setVideoIdxById=L,exports.skip=function(e,t){var n=i(e),o=n.currentTime()+t;n.currentTime(o)},exports.token_authentication_enabled=function(e){var t=!0,n=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return n&&!i&&(t=!1),t};
|