shaka-player 3.2.5 → 3.2.6

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/lib/player.js CHANGED
@@ -6372,7 +6372,7 @@ shaka.Player.TYPICAL_BUFFERING_THRESHOLD_ = 0.5;
6372
6372
  * @define {string} A version number taken from git at compile time.
6373
6373
  * @export
6374
6374
  */
6375
- shaka.Player.version = 'v3.2.5-uncompiled';
6375
+ shaka.Player.version = 'v3.2.6-uncompiled';
6376
6376
 
6377
6377
  // Initialize the deprecation system using the version string we just set
6378
6378
  // on the player.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shaka-player",
3
3
  "description": "DASH/EME video player library",
4
- "version": "3.2.5",
4
+ "version": "3.2.6",
5
5
  "homepage": "https://github.com/shaka-project/shaka-player",
6
6
  "author": "Google",
7
7
  "maintainers": [
@@ -78,11 +78,11 @@
78
78
 
79
79
  /* This math is determining how far the button is from the right edge.
80
80
  * Ad panel's parent is centered and @bottom-controls-width wide, so
81
- * 100 - @bottom-controls-width = margins from both sides of the container.
81
+ * 100% - @bottom-controls-width = margins from both sides of the container.
82
82
  * That divided by 2 is margin on one side, so we take that, and move the
83
83
  * button from its normal position to the right by that percentage.
84
84
  */
85
- right: (100 - @bottom-controls-width) / 2 * -1;
85
+ right: calc((100% - @bottom-controls-width) / 2 * -1);
86
86
  display: flex;
87
87
  flex-direction: row;
88
88
  margin: 0;
@@ -26,7 +26,7 @@
26
26
  *
27
27
  * Based on tips from https://stackoverflow.com/a/12925343 */
28
28
  box-sizing: border-box;
29
- padding: @play-button-size-percentage / 2;
29
+ padding: calc(@play-button-size-percentage / 2);
30
30
  width: 0;
31
31
  height: 0;
32
32
 
@@ -263,8 +263,8 @@
263
263
 
264
264
  .shaka-spinner {
265
265
  /* This uses the same trickery as the big play button define
266
- the spinner's width and height. See .shaka-play-button
267
- for the detailed explanation. */
266
+ * the spinner's width and height. See .shaka-play-button
267
+ * for the detailed explanation. */
268
268
 
269
269
  /* For the padding thing to work, spinner div needs to be an
270
270
  overlay-parent and spinner svg - an overlay child. */
@@ -272,11 +272,11 @@
272
272
 
273
273
  margin: 0;
274
274
  box-sizing: border-box;
275
- padding: @spinner-size-percentage / 2;
275
+ padding: calc(@spinner-size-percentage / 2);
276
276
  width: 0;
277
277
  height: 0;
278
278
 
279
279
  /* Add a bit of a white shadow to keep our black spinner visible
280
- on a black background. */
280
+ * on a black background. */
281
281
  filter: drop-shadow(0 0 2px rgba(255 255 255 / 50%));
282
282
  }
@@ -39,7 +39,7 @@
39
39
  .overlay-parent();
40
40
 
41
41
  /* Vertical margins to occupy the same space as the thumb. */
42
- margin: (@thumb-size - @track-height)/2 6px;
42
+ margin: calc((@thumb-size - @track-height) / 2) 6px;
43
43
 
44
44
  /* Smaller height to contain the background for the virtual track. */
45
45
  height: @track-height;
@@ -109,7 +109,7 @@
109
109
 
110
110
  /* Position the top of the range element so that it is centered on the
111
111
  * container. Note that the container is actually smaller than the thumb. */
112
- top: (@track-height - @thumb-size) / 2;
112
+ top: calc((@track-height - @thumb-size) / 2);
113
113
 
114
114
  /* Make sure clicking at the very top of the bar still takes effect and is not
115
115
  * confused with clicking the video to play/pause it. */
package/ui/seek_bar.js CHANGED
@@ -74,7 +74,8 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement {
74
74
  });
75
75
 
76
76
  /**
77
- * When user is scrubbing the seek bar - we should pause the video - see https://git.io/JUhHG
77
+ * When user is scrubbing the seek bar - we should pause the video - see
78
+ * https://github.com/google/shaka-player/pull/2898#issuecomment-705229215
78
79
  * but will conditionally pause or play the video after scrubbing
79
80
  * depending on its previous state
80
81
  *