shaka-player 4.12.2 → 4.12.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.
Files changed (42) hide show
  1. package/.csslintrc +2 -1
  2. package/dist/controls.css +3 -3
  3. package/dist/controls.css.map +1 -1
  4. package/dist/deps.js +3 -2
  5. package/dist/locales.js +36 -36
  6. package/dist/shaka-player.compiled.d.ts +1 -1
  7. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  8. package/dist/shaka-player.compiled.debug.js +236 -237
  9. package/dist/shaka-player.compiled.debug.map +4 -4
  10. package/dist/shaka-player.compiled.js +1328 -1323
  11. package/dist/shaka-player.compiled.map +4 -4
  12. package/dist/shaka-player.ui.d.ts +1 -1
  13. package/dist/shaka-player.ui.debug.d.ts +1 -1
  14. package/dist/shaka-player.ui.debug.js +274 -275
  15. package/dist/shaka-player.ui.debug.map +4 -4
  16. package/dist/shaka-player.ui.js +1536 -1531
  17. package/dist/shaka-player.ui.map +4 -4
  18. package/externs/managedmediasource.js +6 -0
  19. package/externs/shaka/ads.js +3 -0
  20. package/lib/ads/ad_utils.js +1 -0
  21. package/lib/ads/interstitial_ad_manager.js +64 -24
  22. package/lib/cast/cast_utils.js +4 -2
  23. package/lib/media/media_source_capabilities.js +6 -8
  24. package/lib/media/media_source_engine.js +3 -4
  25. package/lib/media/segment_utils.js +7 -3
  26. package/lib/net/http_xhr_plugin.js +1 -0
  27. package/lib/player.js +42 -36
  28. package/lib/text/vtt_text_parser.js +9 -4
  29. package/lib/util/abortable_operation.js +3 -0
  30. package/lib/util/buffer_utils.js +10 -8
  31. package/lib/util/mime_utils.js +2 -0
  32. package/lib/util/number_utils.js +37 -0
  33. package/lib/util/object_utils.js +1 -1
  34. package/lib/util/uint8array_utils.js +3 -2
  35. package/package.json +2 -2
  36. package/ui/language_utils.js +3 -1
  37. package/ui/less/ad_controls.less +3 -3
  38. package/ui/less/buttons.less +4 -4
  39. package/ui/less/containers.less +7 -7
  40. package/ui/less/overflow_menu.less +4 -4
  41. package/ui/less/thumbnails.less +3 -3
  42. package/ui/less/tooltip.less +1 -1
@@ -95,11 +95,11 @@
95
95
 
96
96
  .shaka-skip-ad-button {
97
97
  padding: 5px 15px;
98
- background: rgba(0 0 0 / 70%);
98
+ background: rgba(0, 0, 0, 70%);
99
99
  border: none;
100
100
 
101
101
  &:disabled {
102
- background: rgba(0 0 0 / 30%);
102
+ background: rgba(0, 0, 0, 30%);
103
103
  }
104
104
 
105
105
  cursor: pointer;
@@ -107,6 +107,6 @@
107
107
 
108
108
  .shaka-skip-ad-counter {
109
109
  padding: 5px;
110
- background: rgba(0 0 0 / 70%);
110
+ background: rgba(0, 0, 0, 70%);
111
111
  margin: 0;
112
112
  }
@@ -38,7 +38,7 @@
38
38
  border-radius: 50%;
39
39
 
40
40
  /* A small drop shadow below the button. */
41
- box-shadow: rgba(0 0 0 / 10%) 0 0 20px 0;
41
+ box-shadow: rgba(0, 0, 0, 10%) 0 0 20px 0;
42
42
 
43
43
  /* No border. */
44
44
  border: none;
@@ -51,7 +51,7 @@
51
51
  background-position: center center;
52
52
 
53
53
  /* A background color behind the play arrow. */
54
- background-color: rgba(255 255 255 / 90%);
54
+ background-color: rgba(255, 255, 255, 90%);
55
55
 
56
56
  .show-when-controls-shown();
57
57
 
@@ -127,10 +127,10 @@
127
127
  border: none;
128
128
 
129
129
  /* Setting text color to white */
130
- color: rgb(255 255 255);
130
+ color: rgb(255, 255, 255);
131
131
 
132
132
  /* Setting background color to black so white text can be seen clearly */
133
- background-color: rgb(0 0 0 / 50%);
133
+ background-color: rgb(0, 0, 0, 50%);
134
134
 
135
135
  cursor: default;
136
136
  font-size: 20px;
@@ -222,7 +222,7 @@
222
222
  min-width: 300px;
223
223
 
224
224
  color: white;
225
- background-color: rgba(35 35 35 / 90%);
225
+ background-color: rgba(35, 35, 35, 90%);
226
226
 
227
227
  font-size: 14px;
228
228
 
@@ -243,7 +243,7 @@
243
243
  }
244
244
 
245
245
  span {
246
- color: rgb(150 150 150);
246
+ color: rgb(150, 150, 150);
247
247
  }
248
248
  }
249
249
 
@@ -254,7 +254,7 @@
254
254
  min-width: 150px;
255
255
 
256
256
  color: white;
257
- background-color: rgba(35 35 35 / 90%);
257
+ background-color: rgba(35, 35, 35, 90%);
258
258
 
259
259
  font-size: 14px;
260
260
 
@@ -275,12 +275,12 @@
275
275
  }
276
276
 
277
277
  span {
278
- color: rgb(150 150 150);
278
+ color: rgb(150, 150, 150);
279
279
  }
280
280
  }
281
281
 
282
282
  .shaka-context-menu {
283
- background-color: rgba(35 35 35 / 90%);
283
+ background-color: rgba(35, 35, 35, 90%);
284
284
 
285
285
  border-radius: 2px;
286
286
 
@@ -300,7 +300,7 @@
300
300
  cursor: pointer;
301
301
 
302
302
  &:hover {
303
- background-color: rgba(50 50 50 / 90%);
303
+ background-color: rgba(50, 50, 50, 90%);
304
304
  }
305
305
  }
306
306
 
@@ -406,7 +406,7 @@
406
406
 
407
407
  /* Add a bit of a white shadow to keep our black spinner visible
408
408
  on a black background. */
409
- filter: drop-shadow(0 0 2px rgba(255 255 255 / 50%));
409
+ filter: drop-shadow(0 0 2px rgba(255, 255, 255, 50%));
410
410
  }
411
411
 
412
412
  .shaka-hidden-fast-forward-container,
@@ -18,7 +18,7 @@
18
18
 
19
19
  /* Styles for the menu itself. */
20
20
  background: white;
21
- box-shadow: 0 1px 9px 0 rgba(0 0 0 / 40%);
21
+ box-shadow: 0 1px 9px 0 rgba(0, 0, 0, 40%);
22
22
  border-radius: 2px;
23
23
  max-height: 250px;
24
24
  min-width: 180px;
@@ -53,7 +53,7 @@
53
53
 
54
54
  /* When hovered, the button's background is highlighted. */
55
55
  &:hover {
56
- background: rgb(224 224 224);
56
+ background: rgb(224, 224, 224);
57
57
  }
58
58
 
59
59
  /* The button is clickable, showing cursor pointer */
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  .shaka-keyboard-navigation &:focus {
68
- background: rgb(224 224 224);
68
+ background: rgb(224, 224, 224);
69
69
  }
70
70
  }
71
71
 
@@ -110,7 +110,7 @@
110
110
  * language, the currently-selected resolution, etc. */
111
111
  .shaka-current-selection-span {
112
112
  /* This is dimmer than the other span, which is the name of the submenu. */
113
- color: rgba(0 0 0 / 54%);
113
+ color: rgba(0, 0, 0, 54%);
114
114
  }
115
115
 
116
116
  /* The submenus have somewhat different margins inside them. */
@@ -1,7 +1,7 @@
1
1
  #shaka-player-ui-thumbnail-container {
2
2
  background-color: black;
3
3
  border: 1px solid black;
4
- box-shadow: 0 8px 8px 0 rgb(0 0 0 / 50%);
4
+ box-shadow: 0 8px 8px 0 rgb(0, 0, 0, 50%);
5
5
  min-width: 150px;
6
6
  overflow: hidden;
7
7
  position: absolute;
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  #shaka-player-ui-thumbnail-time {
17
- background-color: rgb(0 0 0 / 50%);
17
+ background-color: rgb(0, 0, 0, 50%);
18
18
  bottom: 0;
19
19
  color: white;
20
20
  font-size: 16px;
@@ -29,7 +29,7 @@
29
29
  background-color: white;
30
30
  border: 1px solid black;
31
31
  border-radius: 10px;
32
- box-shadow: 0 8px 8px 0 rgb(0 0 0 / 50%);
32
+ box-shadow: 0 8px 8px 0 rgb(0, 0, 0, 50%);
33
33
  color: black;
34
34
  overflow: hidden;
35
35
  padding: 1px 7px;
@@ -53,7 +53,7 @@
53
53
  font-size: 13px;
54
54
 
55
55
  /* Styling */
56
- background: rgba(35 35 35 / 90%);
56
+ background: rgba(35, 35, 35, 90%);
57
57
  color: white;
58
58
  border-radius: 3px;
59
59
  padding: 5px 10px;