@brightspace-ui/labs 2.56.0 → 2.56.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/demo/components/ou-filter/ouFilterDemoPage.js +14 -16
- package/package.json +4 -3
- package/src/components/accessibility-disability-simulator/accessibility-disability-simulator.js +70 -74
- package/src/components/accordion/accordion-collapse.js +161 -164
- package/src/components/accordion/accordion.js +14 -17
- package/src/components/attribute-picker/attribute-picker-item.js +63 -66
- package/src/components/attribute-picker/attribute-picker.js +116 -121
- package/src/components/card-overlay/card-overlay.js +53 -55
- package/src/components/checkbox-drawer/checkbox-drawer.js +32 -36
- package/src/components/community/community-base.js +3 -5
- package/src/components/community/community-button.js +3 -5
- package/src/components/community/community-link.js +4 -6
- package/src/components/file-uploader/file-uploader.js +148 -151
- package/src/components/grade-result/grade-result-icon-button.js +5 -6
- package/src/components/grade-result/grade-result-letter-score.js +18 -22
- package/src/components/grade-result/grade-result-numeric-score.js +25 -28
- package/src/components/grade-result/grade-result-presentational.js +133 -136
- package/src/components/grade-result/grade-result-student-grade-preview.js +38 -42
- package/src/components/media-player/media-player-audio-bars.js +28 -31
- package/src/components/media-player/media-player.js +503 -487
- package/src/components/media-player/slider-bar.js +119 -122
- package/src/components/navigation/navigation-band.js +69 -71
- package/src/components/navigation/navigation-button-icon.js +51 -55
- package/src/components/navigation/navigation-dropdown-button-custom.js +13 -17
- package/src/components/navigation/navigation-dropdown-button-icon.js +21 -25
- package/src/components/navigation/navigation-immersive.js +128 -132
- package/src/components/navigation/navigation-iterator.js +21 -25
- package/src/components/navigation/navigation-link-back.js +13 -17
- package/src/components/navigation/navigation-link-icon.js +36 -40
- package/src/components/navigation/navigation-link-image.js +31 -35
- package/src/components/navigation/navigation-link.js +34 -38
- package/src/components/navigation/navigation-main-footer.js +7 -9
- package/src/components/navigation/navigation-main-header.js +34 -36
- package/src/components/navigation/navigation-notification-icon.js +30 -34
- package/src/components/navigation/navigation.js +19 -23
- package/src/components/opt-in-flyout/flyout-impl.js +138 -146
- package/src/components/opt-in-flyout/opt-in-flyout.js +14 -18
- package/src/components/opt-in-flyout/opt-out-dialog.js +63 -67
- package/src/components/opt-in-flyout/opt-out-flyout.js +15 -19
- package/src/components/opt-in-flyout/opt-out-reason-selector.js +38 -45
- package/src/components/opt-in-flyout/opt-out-reason.js +9 -13
- package/src/components/ou-filter/ou-filter.js +14 -18
- package/src/components/ou-filter/tree-filter.js +22 -26
- package/src/components/ou-filter/tree-selector-node.js +62 -66
- package/src/components/ou-filter/tree-selector.js +55 -62
- package/src/components/pagination/pager-numeric.js +35 -39
- package/src/components/view-toggle/view-toggle.js +79 -81
- package/src/components/wizard/single-step-header.js +106 -110
- package/src/components/wizard/wizard-step.js +65 -68
- package/src/components/wizard/wizard.js +30 -33
- package/src/utilities/reactive-store/README.md +10 -15
|
@@ -77,549 +77,545 @@ const tryParseUrlExpiry = url => {
|
|
|
77
77
|
|
|
78
78
|
class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
79
79
|
|
|
80
|
-
static
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
80
|
+
static properties = {
|
|
81
|
+
allowDownload: { type: Boolean, attribute: 'allow-download', reflect: true },
|
|
82
|
+
autoplay: { type: Boolean },
|
|
83
|
+
crossorigin: { type: String },
|
|
84
|
+
downloadFilename: { type: String, attribute: 'download-filename' },
|
|
85
|
+
durationHint: { type: Number, attribute: 'duration-hint' },
|
|
86
|
+
hideCaptionsSelection: { type: Boolean, attribute: 'hide-captions-selection' },
|
|
87
|
+
hideSeekBar: { type: Boolean, attribute: 'hide-seek-bar' },
|
|
88
|
+
loop: { type: Boolean },
|
|
89
|
+
mediaType: { type: String, attribute: 'media-type' },
|
|
90
|
+
metadata: { type: Object },
|
|
91
|
+
poster: { type: String },
|
|
92
|
+
src: { type: String },
|
|
93
|
+
thumbnails: { type: String },
|
|
94
|
+
disableSetPreferences: { type: Boolean, attribute: 'disable-set-preferences' },
|
|
95
|
+
transcriptViewerOn: { type: Boolean, attribute: 'transcript-viewer-on' },
|
|
96
|
+
playInView: { type: Boolean, attribute: 'play-in-view' },
|
|
97
|
+
_chapters: { type: Array, attribute: false },
|
|
98
|
+
_currentTime: { type: Number, attribute: false },
|
|
99
|
+
_duration: { type: Number, attribute: false },
|
|
100
|
+
_heightPixels: { type: Number, attribute: false },
|
|
101
|
+
_hoverTime: { type: Number, attribute: false },
|
|
102
|
+
_hovering: { type: Boolean, attribute: false },
|
|
103
|
+
_loading: { type: Boolean, attribute: false },
|
|
104
|
+
_maintainHeight: { type: Number, attribute: false },
|
|
105
|
+
_mediaContainerAspectRatio: { type: Object, attribute: false },
|
|
106
|
+
_message: { type: Object, attribute: false },
|
|
107
|
+
_muted: { type: Boolean, attribute: false },
|
|
108
|
+
_playing: { type: Boolean, attribute: false },
|
|
109
|
+
_posterVisible: { type: Boolean, attribute: false },
|
|
110
|
+
_recentlyShowedCustomControls: { type: Boolean, attribute: false },
|
|
111
|
+
_searchResults: { type: Array, attribute: false },
|
|
112
|
+
_selectedQuality: { type: String, attribute: false },
|
|
113
|
+
_selectedSpeed: { type: String, attribute: false },
|
|
114
|
+
_selectedTrackIdentifier: { type: Object, attribute: false },
|
|
115
|
+
_sources: { type: Object, attribute: false },
|
|
116
|
+
_thumbnailsImage: { type: Object, attribute: false },
|
|
117
|
+
_timelinePreviewOffset: { type: Number, attribute: false },
|
|
118
|
+
_trackFontSizeRem: { type: Number, attribute: false },
|
|
119
|
+
_timeFontSizeRem: { type: Number, attribute: false },
|
|
120
|
+
_trackText: { type: String, attribute: false },
|
|
121
|
+
_tracks: { type: Array, attribute: false },
|
|
122
|
+
_usingVolumeContainer: { type: Boolean, attribute: false },
|
|
123
|
+
_volume: { type: Number, attribute: false },
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
static styles = [labelStyles, css`
|
|
127
|
+
:host {
|
|
128
|
+
display: block;
|
|
129
|
+
min-height: 140px;
|
|
130
|
+
position: relative;
|
|
131
|
+
}
|
|
127
132
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
display: block;
|
|
132
|
-
min-height: 140px;
|
|
133
|
-
position: relative;
|
|
134
|
-
}
|
|
133
|
+
:host([hidden]) {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
#d2l-labs-media-player-media-container {
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
/* This max-height prevents the video from growing out of bounds and appearing cut off inside of ISF iframes */
|
|
141
|
+
max-height: 100vh;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
position: relative;
|
|
144
|
+
width: 100%;
|
|
145
|
+
}
|
|
139
146
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/* This max-height prevents the video from growing out of bounds and appearing cut off inside of ISF iframes */
|
|
144
|
-
max-height: 100vh;
|
|
145
|
-
overflow: hidden;
|
|
146
|
-
position: relative;
|
|
147
|
-
width: 100%;
|
|
148
|
-
}
|
|
147
|
+
.d2l-labs-media-player-type-is-audio {
|
|
148
|
+
background-color: #ffffff;
|
|
149
|
+
}
|
|
149
150
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
.d2l-labs-media-player-type-is-video {
|
|
152
|
+
background-color: #000000;
|
|
153
|
+
color: #ffffff;
|
|
154
|
+
}
|
|
153
155
|
|
|
154
|
-
.d2l-labs-media-player-type-is-video {
|
|
155
|
-
background-color: #000000;
|
|
156
|
-
color: #ffffff;
|
|
157
|
-
}
|
|
158
156
|
|
|
157
|
+
#d2l-labs-media-player-video {
|
|
158
|
+
display: block;
|
|
159
|
+
height: 100%;
|
|
160
|
+
max-height: var(--d2l-labs-media-player-video-max-height, 100vh);
|
|
161
|
+
min-height: 100%;
|
|
162
|
+
position: relative;
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
159
165
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
#d2l-labs-media-player-video-poster {
|
|
167
|
+
background-color: #000000;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
height: 100%;
|
|
170
|
+
object-fit: contain;
|
|
171
|
+
position: absolute;
|
|
172
|
+
width: 100%;
|
|
173
|
+
z-index: 1;
|
|
174
|
+
}
|
|
168
175
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
#d2l-labs-media-player-video-poster-play-button {
|
|
177
|
+
background-color: rgba(0, 0, 0, 0.69);
|
|
178
|
+
border: none;
|
|
179
|
+
border-radius: 50%;
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
padding: 2em;
|
|
182
|
+
position: absolute;
|
|
183
|
+
z-index: 2;
|
|
184
|
+
}
|
|
178
185
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
#d2l-labs-media-player-video-poster-play-button[transcript] {
|
|
187
|
+
background-color: rgba(0, 0, 0, 0.69);
|
|
188
|
+
border: none;
|
|
189
|
+
border-radius: 50%;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
left: 10%;
|
|
192
|
+
padding: 2em;
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 10%;
|
|
195
|
+
transform: scale(0.5);
|
|
196
|
+
z-index: 2;
|
|
197
|
+
}
|
|
188
198
|
|
|
189
|
-
#d2l-labs-media-player-video-poster-play-button[transcript] {
|
|
190
|
-
background-color: rgba(0, 0, 0, 0.69);
|
|
191
|
-
border: none;
|
|
192
|
-
border-radius: 50%;
|
|
193
|
-
cursor: pointer;
|
|
194
|
-
left: 10%;
|
|
195
|
-
padding: 2em;
|
|
196
|
-
position: absolute;
|
|
197
|
-
top: 10%;
|
|
198
|
-
transform: scale(0.5);
|
|
199
|
-
z-index: 2;
|
|
200
|
-
}
|
|
201
199
|
|
|
200
|
+
#d2l-labs-media-player-video-poster-play-button > d2l-icon {
|
|
201
|
+
color: #ffffff;
|
|
202
|
+
}
|
|
202
203
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
#d2l-labs-media-player-media-controls {
|
|
205
|
+
bottom: 0;
|
|
206
|
+
position: absolute;
|
|
207
|
+
transition: bottom 500ms ease;
|
|
208
|
+
width: 100%;
|
|
209
|
+
z-index: 2;
|
|
210
|
+
}
|
|
206
211
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
212
|
+
.d2l-labs-media-player-type-is-audio #d2l-labs-media-player-media-controls {
|
|
213
|
+
background-color: #ffffff;
|
|
214
|
+
}
|
|
215
|
+
.d2l-labs-media-player-type-is-video #d2l-labs-media-player-media-controls {
|
|
216
|
+
background-color: rgba(0, 0, 0, 0.69);
|
|
217
|
+
}
|
|
214
218
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
.d2l-labs-media-player-type-is-video #d2l-labs-media-player-media-controls {
|
|
219
|
-
background-color: rgba(0, 0, 0, 0.69);
|
|
220
|
-
}
|
|
219
|
+
#d2l-labs-media-player-media-controls.d2l-labs-media-player-hidden {
|
|
220
|
+
bottom: -8rem;
|
|
221
|
+
}
|
|
221
222
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
#d2l-labs-media-player-seek-bar {
|
|
224
|
+
--d2l-knob-focus-color: #ffffff;
|
|
225
|
+
--d2l-knob-focus-size: 4px;
|
|
226
|
+
--d2l-knob-size: 16px;
|
|
227
|
+
--d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
|
|
228
|
+
--d2l-progress-border-radius: 0;
|
|
229
|
+
position: absolute;
|
|
230
|
+
top: -9px;
|
|
231
|
+
width: 100%;
|
|
232
|
+
z-index: 1;
|
|
233
|
+
}
|
|
225
234
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
--d2l-knob-size: 16px;
|
|
230
|
-
--d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
|
|
231
|
-
--d2l-progress-border-radius: 0;
|
|
232
|
-
position: absolute;
|
|
233
|
-
top: -9px;
|
|
234
|
-
width: 100%;
|
|
235
|
-
z-index: 1;
|
|
236
|
-
}
|
|
235
|
+
#d2l-labs-media-player-seek-bar:focus {
|
|
236
|
+
--d2l-knob-box-shadow: 0 2px 6px 3px rgba(0, 0, 0, 1);
|
|
237
|
+
}
|
|
237
238
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
#d2l-labs-media-player-buttons {
|
|
240
|
+
align-items: center;
|
|
241
|
+
direction: ltr;
|
|
242
|
+
display: flex;
|
|
243
|
+
flex-direction: row;
|
|
244
|
+
justify-content: space-between;
|
|
245
|
+
margin-left: 6px;
|
|
246
|
+
}
|
|
241
247
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
flex-direction: row;
|
|
247
|
-
justify-content: space-between;
|
|
248
|
-
margin-left: 6px;
|
|
249
|
-
}
|
|
248
|
+
[dir="rtl"] #d2l-labs-media-player-buttons {
|
|
249
|
+
margin-left: 0;
|
|
250
|
+
margin-right: 6px;
|
|
251
|
+
}
|
|
250
252
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
253
|
+
.d2l-labs-media-player-flex-filler {
|
|
254
|
+
flex: auto;
|
|
255
|
+
}
|
|
255
256
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
d2l-button-icon {
|
|
258
|
+
--d2l-button-icon-min-height: 1.8rem;
|
|
259
|
+
--d2l-button-icon-min-width: 1.8rem;
|
|
260
|
+
margin: 6px 6px 6px 0;
|
|
261
|
+
}
|
|
259
262
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
margin: 6px 6px 6px 0;
|
|
264
|
-
}
|
|
263
|
+
#d2l-labs-media-player-time:hover {
|
|
264
|
+
cursor: auto;
|
|
265
|
+
}
|
|
265
266
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
#d2l-labs-media-player-volume-container {
|
|
268
|
+
position: relative;
|
|
269
|
+
}
|
|
269
270
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
#d2l-labs-media-player-volume-level-container {
|
|
272
|
+
bottom: calc(1.8rem + 6px);
|
|
273
|
+
height: 11px;
|
|
274
|
+
left: 0;
|
|
275
|
+
position: absolute;
|
|
276
|
+
width: 1.8rem;
|
|
277
|
+
z-index: 2;
|
|
278
|
+
}
|
|
273
279
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
left: 0;
|
|
278
|
-
position: absolute;
|
|
279
|
-
width: 1.8rem;
|
|
280
|
-
z-index: 2;
|
|
281
|
-
}
|
|
280
|
+
#d2l-labs-media-player-volume-level-container.d2l-labs-media-player-hidden {
|
|
281
|
+
left: -10000px;
|
|
282
|
+
}
|
|
282
283
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
#d2l-labs-media-player-volume-level-background {
|
|
285
|
+
align-items: center;
|
|
286
|
+
background-color: rgba(0, 0, 0, 0.69);
|
|
287
|
+
border-radius: 0 0.3rem 0.3rem 0;
|
|
288
|
+
bottom: 4.55rem;
|
|
289
|
+
display: flex;
|
|
290
|
+
height: 1.8rem;
|
|
291
|
+
justify-content: center;
|
|
292
|
+
left: -2.7rem;
|
|
293
|
+
padding: 0 0.625rem;
|
|
294
|
+
position: relative;
|
|
295
|
+
width: 6rem;
|
|
296
|
+
}
|
|
286
297
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
bottom: 4.55rem;
|
|
292
|
-
display: flex;
|
|
293
|
-
height: 1.8rem;
|
|
294
|
-
justify-content: center;
|
|
295
|
-
left: -2.7rem;
|
|
296
|
-
padding: 0 0.625rem;
|
|
297
|
-
position: relative;
|
|
298
|
-
width: 6rem;
|
|
299
|
-
}
|
|
298
|
+
#d2l-labs-media-player-volume-slider-container {
|
|
299
|
+
height: 100%;
|
|
300
|
+
width: 100%;
|
|
301
|
+
}
|
|
300
302
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
#d2l-labs-media-player-volume-slider {
|
|
304
|
+
--d2l-knob-focus-color: #ffffff;
|
|
305
|
+
--d2l-knob-focus-size: 0.25rem;
|
|
306
|
+
--d2l-knob-size: 0.8rem;
|
|
307
|
+
--d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
|
|
308
|
+
position: relative;
|
|
309
|
+
top: calc(0.5rem + 1px);
|
|
310
|
+
}
|
|
305
311
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
--d2l-knob-size: 0.8rem;
|
|
310
|
-
--d2l-outer-knob-color: var(--d2l-color-celestine-plus-1);
|
|
311
|
-
position: relative;
|
|
312
|
-
top: calc(0.5rem + 1px);
|
|
313
|
-
}
|
|
312
|
+
.d2l-labs-media-player-rotated {
|
|
313
|
+
transform: rotate(-90deg);
|
|
314
|
+
}
|
|
314
315
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
#d2l-labs-media-player-audio-bars-container {
|
|
317
|
+
align-items: center;
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-wrap: nowrap;
|
|
320
|
+
height: 8.5rem;
|
|
321
|
+
justify-content: center;
|
|
322
|
+
left: calc(2.1rem + 6px);
|
|
323
|
+
position: absolute;
|
|
324
|
+
top: calc(50% - 5.125rem);
|
|
325
|
+
width: calc(100% - 4.2rem - 12px);
|
|
326
|
+
}
|
|
318
327
|
|
|
319
|
-
|
|
328
|
+
d2l-labs-media-player-audio-bars {
|
|
329
|
+
height: 2rem;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
#d2l-labs-media-player-track-container {
|
|
333
|
+
align-items: center;
|
|
334
|
+
color: #ffffff;
|
|
335
|
+
display: flex;
|
|
336
|
+
justify-content: center;
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
position: absolute;
|
|
339
|
+
text-align: center;
|
|
340
|
+
transition: bottom 500ms ease;
|
|
341
|
+
width: 100%;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@media screen and (min-width: 768px) {
|
|
345
|
+
#d2l-labs-media-player-track-container > div {
|
|
320
346
|
align-items: center;
|
|
321
347
|
display: flex;
|
|
322
|
-
flex-wrap: nowrap;
|
|
323
|
-
height: 8.5rem;
|
|
324
348
|
justify-content: center;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
top: calc(50% - 5.125rem);
|
|
328
|
-
width: calc(100% - 4.2rem - 12px);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
d2l-labs-media-player-audio-bars {
|
|
332
|
-
height: 2rem;
|
|
349
|
+
min-width: ${MIN_TRACK_WIDTH_PX}px;
|
|
350
|
+
width: 50%;
|
|
333
351
|
}
|
|
352
|
+
}
|
|
334
353
|
|
|
335
|
-
|
|
354
|
+
@media screen and (max-width: 767px) {
|
|
355
|
+
#d2l-labs-media-player-track-container > div {
|
|
336
356
|
align-items: center;
|
|
337
|
-
color: #ffffff;
|
|
338
357
|
display: flex;
|
|
339
358
|
justify-content: center;
|
|
340
|
-
overflow: hidden;
|
|
341
|
-
position: absolute;
|
|
342
|
-
text-align: center;
|
|
343
|
-
transition: bottom 500ms ease;
|
|
344
359
|
width: 100%;
|
|
345
360
|
}
|
|
361
|
+
}
|
|
346
362
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
@media screen and (max-width: 767px) {
|
|
358
|
-
#d2l-labs-media-player-track-container > div {
|
|
359
|
-
align-items: center;
|
|
360
|
-
display: flex;
|
|
361
|
-
justify-content: center;
|
|
362
|
-
width: 100%;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
#d2l-labs-media-player-track-container > div > span {
|
|
367
|
-
background-color: rgba(0, 0, 0, 0.69);
|
|
368
|
-
box-shadow: 0.3rem 0 0 rgba(0, 0, 0, 0.69), -0.3rem 0 0 rgba(0, 0, 0, 0.69);
|
|
369
|
-
color: white;
|
|
370
|
-
line-height: 1.35rem;
|
|
371
|
-
white-space: pre-wrap;
|
|
372
|
-
}
|
|
363
|
+
#d2l-labs-media-player-track-container > div > span {
|
|
364
|
+
background-color: rgba(0, 0, 0, 0.69);
|
|
365
|
+
box-shadow: 0.3rem 0 0 rgba(0, 0, 0, 0.69), -0.3rem 0 0 rgba(0, 0, 0, 0.69);
|
|
366
|
+
color: white;
|
|
367
|
+
line-height: 1.35rem;
|
|
368
|
+
white-space: pre-wrap;
|
|
369
|
+
}
|
|
373
370
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
371
|
+
#d2l-labs-media-player-audio-play-button-container {
|
|
372
|
+
background-color: white;
|
|
373
|
+
position: absolute;
|
|
374
|
+
}
|
|
378
375
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
376
|
+
#d2l-labs-media-player-audio-play-button {
|
|
377
|
+
background-color: transparent;
|
|
378
|
+
border: none;
|
|
379
|
+
border-radius: 12px;
|
|
380
|
+
margin: 2px;
|
|
381
|
+
padding: 2px;
|
|
382
|
+
}
|
|
386
383
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
#d2l-labs-media-player-audio-play-button:focus {
|
|
385
|
+
outline: none;
|
|
386
|
+
}
|
|
390
387
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
388
|
+
#d2l-labs-media-player-audio-play-button:hover {
|
|
389
|
+
background: var(--d2l-color-mica);
|
|
390
|
+
background-clip: content-box;
|
|
391
|
+
cursor: pointer;
|
|
392
|
+
}
|
|
396
393
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
394
|
+
#d2l-labs-media-player-audio-play-button:${unsafeCSS(getFocusPseudoClass())} {
|
|
395
|
+
border: 2px solid var(--d2l-color-celestine);
|
|
396
|
+
}
|
|
400
397
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
398
|
+
#d2l-labs-media-player-audio-play-button > d2l-icon {
|
|
399
|
+
height: 2.75rem;
|
|
400
|
+
width: 2.75rem;
|
|
401
|
+
}
|
|
405
402
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
403
|
+
.d2l-labs-media-player-chapter-marker, .d2l-labs-media-player-chapter-marker-highlight {
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
height: 6px;
|
|
406
|
+
pointer-events: none;
|
|
407
|
+
position: absolute;
|
|
408
|
+
top: 4px;
|
|
409
|
+
width: 3px;
|
|
410
|
+
z-index: 2;
|
|
411
|
+
}
|
|
415
412
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
413
|
+
.d2l-labs-media-player-chapter-marker {
|
|
414
|
+
background-color: var(--d2l-color-ferrite);
|
|
415
|
+
}
|
|
419
416
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
417
|
+
.d2l-labs-media-player-chapter-marker-highlight {
|
|
418
|
+
background-color: var(--d2l-color-celestine-minus-1);
|
|
419
|
+
}
|
|
423
420
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
421
|
+
.d2l-labs-media-player-chapter-marker[theme="dark"] {
|
|
422
|
+
background-color: white;
|
|
423
|
+
}
|
|
427
424
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
425
|
+
#d2l-labs-media-player-search-container {
|
|
426
|
+
align-items: center;
|
|
427
|
+
display: flex;
|
|
428
|
+
}
|
|
429
|
+
#d2l-labs-media-player-search-container.d2l-labs-media-player-search-container-hidden {
|
|
430
|
+
display: none;
|
|
431
|
+
}
|
|
435
432
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
433
|
+
#d2l-labs-media-player-search-container #d2l-labs-media-player-search-input {
|
|
434
|
+
border-color: rgba(48, 52, 54, 0.1);
|
|
435
|
+
border-radius: 20px;
|
|
436
|
+
color: var(--d2l-color-ferrite);
|
|
437
|
+
font-size: 1rem;
|
|
438
|
+
opacity: 0;
|
|
439
|
+
outline: 0;
|
|
440
|
+
padding: 0;
|
|
441
|
+
position: relative;
|
|
442
|
+
transition: width 0.4s, opacity 0.4s, visibility 0s;
|
|
443
|
+
visibility: hidden;
|
|
444
|
+
width: 0;
|
|
445
|
+
}
|
|
449
446
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
447
|
+
#d2l-labs-media-player-search-container #d2l-labs-media-player-search-input[theme="dark"] {
|
|
448
|
+
background-color: rgba(24, 26, 27, 0.15);
|
|
449
|
+
color: rgb(206, 216, 225);
|
|
450
|
+
}
|
|
454
451
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
452
|
+
#d2l-labs-media-player-search-container #d2l-labs-media-player-search-input:focus,
|
|
453
|
+
#d2l-labs-media-player-search-container #d2l-labs-media-player-search-input:active {
|
|
454
|
+
box-shadow: rgb(24 26 27) 0 0 1px;
|
|
455
|
+
outline-color: initial;
|
|
456
|
+
}
|
|
460
457
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
458
|
+
#d2l-labs-media-player-search-container:hover #d2l-labs-media-player-search-input,
|
|
459
|
+
#d2l-labs-media-player-search-container.d2l-labs-media-player-search-container-hover #d2l-labs-media-player-search-input {
|
|
460
|
+
height: 1.2rem;
|
|
461
|
+
opacity: 1;
|
|
462
|
+
padding: 0 0.35rem;
|
|
463
|
+
visibility: visible;
|
|
464
|
+
width: 6rem;
|
|
465
|
+
}
|
|
469
466
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
467
|
+
#d2l-labs-media-player-timeline-markers-container {
|
|
468
|
+
position: absolute;
|
|
469
|
+
top: -9px;
|
|
470
|
+
transition: all 0.2s;
|
|
471
|
+
width: 100%;
|
|
472
|
+
}
|
|
476
473
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
474
|
+
#d2l-labs-media-player-thumbnails-preview-container {
|
|
475
|
+
bottom: 60px;
|
|
476
|
+
position: absolute;
|
|
477
|
+
transform: translateX(-50%);
|
|
478
|
+
z-index: 2;
|
|
479
|
+
}
|
|
483
480
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
481
|
+
#d2l-labs-media-player-thumbnails-preview-chapter {
|
|
482
|
+
background: #00000072;
|
|
483
|
+
position: absolute;
|
|
484
|
+
text-align: center;
|
|
485
|
+
text-shadow: 0 0 5px rgb(0 0 0 / 75%);
|
|
486
|
+
width: 100%;
|
|
487
|
+
z-index: 2;
|
|
488
|
+
}
|
|
492
489
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
490
|
+
#d2l-labs-media-player-thumbnails-preview-time {
|
|
491
|
+
background: #00000042;
|
|
492
|
+
bottom: 3px;
|
|
493
|
+
font-size: 14px;
|
|
494
|
+
left: 0;
|
|
495
|
+
position: absolute;
|
|
496
|
+
text-align: center;
|
|
497
|
+
text-shadow: 0 0 4px rgb(0 0 0 / 75%);
|
|
498
|
+
width: 100%;
|
|
499
|
+
z-index: 2;
|
|
500
|
+
}
|
|
504
501
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
502
|
+
#d2l-labs-media-player-thumbnails-preview-image {
|
|
503
|
+
background-repeat: no-repeat;
|
|
504
|
+
position: relative;
|
|
505
|
+
width: 100%;
|
|
506
|
+
z-index: 2;
|
|
507
|
+
}
|
|
511
508
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
509
|
+
.d2l-labs-media-player-search-marker {
|
|
510
|
+
color: var(--d2l-color-ferrite);
|
|
511
|
+
cursor: pointer;
|
|
512
|
+
height: 6px;
|
|
513
|
+
pointer-events: none;
|
|
514
|
+
position: absolute;
|
|
515
|
+
top: 4px;
|
|
516
|
+
width: 6px;
|
|
517
|
+
z-index: 2;
|
|
518
|
+
}
|
|
522
519
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
520
|
+
.d2l-labs-media-player-search-marker[theme="dark"] {
|
|
521
|
+
color: white;
|
|
522
|
+
}
|
|
526
523
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
524
|
+
.d2l-labs-media-player-full-area-centered {
|
|
525
|
+
align-items: center;
|
|
526
|
+
display: flex;
|
|
527
|
+
height: 100%;
|
|
528
|
+
justify-content: center;
|
|
529
|
+
left: 0;
|
|
530
|
+
position: absolute;
|
|
531
|
+
top: 0;
|
|
532
|
+
width: 100%;
|
|
533
|
+
z-index: 2;
|
|
534
|
+
}
|
|
538
535
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
536
|
+
#d2l-labs-media-player-alert-inner {
|
|
537
|
+
display: flex;
|
|
538
|
+
flex-direction: row;
|
|
539
|
+
justify-content: flex-start;
|
|
540
|
+
}
|
|
544
541
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
542
|
+
#d2l-labs-media-player-alert-inner > svg {
|
|
543
|
+
flex-shrink: 0;
|
|
544
|
+
margin-right: 0.5rem;
|
|
545
|
+
}
|
|
549
546
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
547
|
+
#d2l-labs-media-player-alert-inner > span {
|
|
548
|
+
font-size: 1rem;
|
|
549
|
+
line-height: 2.1rem;
|
|
550
|
+
}
|
|
554
551
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
`
|
|
622
|
-
}
|
|
552
|
+
.transcript-cue-container {
|
|
553
|
+
padding-left: 10px;
|
|
554
|
+
}
|
|
555
|
+
.video-transcript-cue {
|
|
556
|
+
padding-left: 5px;
|
|
557
|
+
}
|
|
558
|
+
.audio-transcript-cue {
|
|
559
|
+
padding-left: 5px;
|
|
560
|
+
}
|
|
561
|
+
.video-transcript-cue[active] {
|
|
562
|
+
background-color: gray;
|
|
563
|
+
box-shadow: -5px 0 0 white;
|
|
564
|
+
}
|
|
565
|
+
.audio-transcript-cue[active] {
|
|
566
|
+
background-color: lightgray;
|
|
567
|
+
box-shadow: -5px 0 0 black;
|
|
568
|
+
}
|
|
569
|
+
#video-transcript-viewer {
|
|
570
|
+
bottom: 55px;
|
|
571
|
+
color: white;
|
|
572
|
+
overflow-anchor: none;
|
|
573
|
+
overflow-y: auto;
|
|
574
|
+
position: absolute;
|
|
575
|
+
right: 0;
|
|
576
|
+
top: 50px;
|
|
577
|
+
width: 65%;
|
|
578
|
+
z-index: 1;
|
|
579
|
+
}
|
|
580
|
+
#audio-transcript-viewer {
|
|
581
|
+
bottom: 60px;
|
|
582
|
+
color: black;
|
|
583
|
+
overflow-anchor: none;
|
|
584
|
+
overflow-y: auto;
|
|
585
|
+
position: absolute;
|
|
586
|
+
right: 0;
|
|
587
|
+
top: 45px;
|
|
588
|
+
width: 100%;
|
|
589
|
+
z-index: 1;
|
|
590
|
+
}
|
|
591
|
+
#close-transcript {
|
|
592
|
+
position: absolute;
|
|
593
|
+
right: 7px;
|
|
594
|
+
top: 0;
|
|
595
|
+
z-index: 1;
|
|
596
|
+
}
|
|
597
|
+
#video-transcript-download-button {
|
|
598
|
+
left: 35%;
|
|
599
|
+
position: absolute;
|
|
600
|
+
top: 5px;
|
|
601
|
+
z-index: 2;
|
|
602
|
+
}
|
|
603
|
+
#audio-transcript-download-button {
|
|
604
|
+
left: 10px;
|
|
605
|
+
position: absolute;
|
|
606
|
+
top: 0;
|
|
607
|
+
z-index: 2;
|
|
608
|
+
}
|
|
609
|
+
#audio-transcript-download-menu {
|
|
610
|
+
left: 35px;
|
|
611
|
+
}
|
|
612
|
+
#video-close-transcript-icon {
|
|
613
|
+
color: white;
|
|
614
|
+
}
|
|
615
|
+
#audio-close-transcript-icon {
|
|
616
|
+
color: black;
|
|
617
|
+
}
|
|
618
|
+
`];
|
|
623
619
|
|
|
624
620
|
constructor() {
|
|
625
621
|
super();
|
|
@@ -665,6 +661,7 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
665
661
|
};
|
|
666
662
|
this.afterCaptions = [];
|
|
667
663
|
this.beforeCaptions = [];
|
|
664
|
+
this._iosVideoFullscreen = false;
|
|
668
665
|
}
|
|
669
666
|
|
|
670
667
|
get currentTime() {
|
|
@@ -829,14 +826,13 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
829
826
|
${this.transcriptViewerOn ? this._renderTranscriptViewer() : ''}
|
|
830
827
|
${this._getMediaAreaView()}
|
|
831
828
|
|
|
832
|
-
${this.
|
|
833
|
-
${!this._trackText || this.transcriptViewerOn ? null : html`
|
|
829
|
+
${!this._trackText || this.transcriptViewerOn ? null : html`
|
|
834
830
|
<div id="d2l-labs-media-player-track-container" style=${styleMap(trackContainerStyle)} @click=${this._onTrackContainerClick}>
|
|
835
831
|
<div>
|
|
836
832
|
<span style=${styleMap(trackSpanStyle)} role="status">${this._trackText}</span>
|
|
837
833
|
</div>
|
|
838
834
|
</div>
|
|
839
|
-
|
|
835
|
+
`}
|
|
840
836
|
|
|
841
837
|
<div class=${classMap(mediaControlsClass)} id="d2l-labs-media-player-media-controls" @mouseenter=${this._startHoveringControls} @mouseleave=${this._stopHoveringControls}>
|
|
842
838
|
${this._getTimelinePreview()}
|
|
@@ -952,7 +948,7 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
952
948
|
${fullscreenButton}
|
|
953
949
|
|
|
954
950
|
</div>
|
|
955
|
-
</div
|
|
951
|
+
</div>
|
|
956
952
|
</div>
|
|
957
953
|
`;
|
|
958
954
|
}
|
|
@@ -1039,6 +1035,10 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
1039
1035
|
|
|
1040
1036
|
#searchTimeout = null;
|
|
1041
1037
|
|
|
1038
|
+
_beginIOSVideoFullscreen() {
|
|
1039
|
+
this._iosVideoFullscreen = true;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
1042
|
_clearPreference(preferenceKey) {
|
|
1043
1043
|
localStorage.removeItem(preferenceKey);
|
|
1044
1044
|
}
|
|
@@ -1068,6 +1068,10 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
1068
1068
|
this.dispatchEvent(new CustomEvent('download-transcript', { bubbles: true, composed: true }));
|
|
1069
1069
|
}
|
|
1070
1070
|
|
|
1071
|
+
_endIOSVideoFullscreen() {
|
|
1072
|
+
this._iosVideoFullscreen = false;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1071
1075
|
static _formatTime(totalSeconds) {
|
|
1072
1076
|
totalSeconds = Math.floor(totalSeconds);
|
|
1073
1077
|
|
|
@@ -1201,7 +1205,8 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
1201
1205
|
${this._getPosterView()}
|
|
1202
1206
|
<video
|
|
1203
1207
|
id="d2l-labs-media-player-video"
|
|
1204
|
-
|
|
1208
|
+
playsinline
|
|
1209
|
+
webkit-playsinline
|
|
1205
1210
|
?autoplay="${this.autoplay}"
|
|
1206
1211
|
?loop="${this.loop}"
|
|
1207
1212
|
crossorigin="${ifDefined(this.crossorigin)}"
|
|
@@ -1219,6 +1224,8 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
1219
1224
|
tabindex="-1"
|
|
1220
1225
|
@timeupdate=${this._onTimeUpdate}
|
|
1221
1226
|
@volumechange=${this._onVolumeChange}
|
|
1227
|
+
@webkitbeginfullscreen=${this._beginIOSVideoFullscreen}
|
|
1228
|
+
@webkitendfullscreen=${this._endIOSVideoFullscreen}
|
|
1222
1229
|
>
|
|
1223
1230
|
<source @error=${this._onError}>
|
|
1224
1231
|
</video>
|
|
@@ -1497,7 +1504,7 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
1497
1504
|
|
|
1498
1505
|
_hidingCustomControls() {
|
|
1499
1506
|
const settingsMenuOpened = this._settingsMenu && this._settingsMenu.opened;
|
|
1500
|
-
return
|
|
1507
|
+
return (this._playing && !this._recentlyShowedCustomControls && !this._hoveringMediaControls && !settingsMenuOpened && !this._usingVolumeContainer && this.mediaType === SOURCE_TYPES.video);
|
|
1501
1508
|
}
|
|
1502
1509
|
|
|
1503
1510
|
_listenForKeyboard(e) {
|
|
@@ -2220,14 +2227,23 @@ class MediaPlayer extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
|
2220
2227
|
}
|
|
2221
2228
|
|
|
2222
2229
|
_toggleFullscreen() {
|
|
2223
|
-
if (!FULLSCREEN_ENABLED) return;
|
|
2224
|
-
|
|
2225
2230
|
if (this.mediaType !== SOURCE_TYPES.video) return;
|
|
2226
2231
|
|
|
2227
|
-
if (
|
|
2228
|
-
fullscreenApi.
|
|
2229
|
-
|
|
2230
|
-
|
|
2232
|
+
if (FULLSCREEN_ENABLED) {
|
|
2233
|
+
if (fullscreenApi.isFullscreen) {
|
|
2234
|
+
fullscreenApi.exit();
|
|
2235
|
+
} else {
|
|
2236
|
+
fullscreenApi.request(this._mediaContainer);
|
|
2237
|
+
}
|
|
2238
|
+
return;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
if (this.isIOSVideo) {
|
|
2242
|
+
if (this._media.webkitDisplayingFullscreen) {
|
|
2243
|
+
this._media.webkitExitFullscreen();
|
|
2244
|
+
} else {
|
|
2245
|
+
this._media.webkitEnterFullscreen();
|
|
2246
|
+
}
|
|
2231
2247
|
}
|
|
2232
2248
|
}
|
|
2233
2249
|
|