shaka-player 3.3.3 → 3.3.4

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
@@ -6576,7 +6576,7 @@ shaka.Player.TYPICAL_BUFFERING_THRESHOLD_ = 0.5;
6576
6576
  * @define {string} A version number taken from git at compile time.
6577
6577
  * @export
6578
6578
  */
6579
- shaka.Player.version = 'v3.3.3-uncompiled';
6579
+ shaka.Player.version = 'v3.3.4-uncompiled';
6580
6580
 
6581
6581
  // Initialize the deprecation system using the version string we just set
6582
6582
  // 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.3.3",
4
+ "version": "3.3.4",
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
 
@@ -337,8 +337,8 @@
337
337
 
338
338
  .shaka-spinner {
339
339
  /* This uses the same trickery as the big play button define
340
- the spinner's width and height. See .shaka-play-button
341
- for the detailed explanation. */
340
+ * the spinner's width and height. See .shaka-play-button
341
+ * for the detailed explanation. */
342
342
 
343
343
  /* For the padding thing to work, spinner div needs to be an
344
344
  overlay-parent and spinner svg - an overlay child. */
@@ -346,11 +346,11 @@
346
346
 
347
347
  margin: 0;
348
348
  box-sizing: border-box;
349
- padding: @spinner-size-percentage / 2;
349
+ padding: calc(@spinner-size-percentage / 2);
350
350
  width: 0;
351
351
  height: 0;
352
352
 
353
353
  /* Add a bit of a white shadow to keep our black spinner visible
354
- on a black background. */
354
+ * on a black background. */
355
355
  filter: drop-shadow(0 0 2px rgba(255 255 255 / 50%));
356
356
  }
@@ -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. */
@@ -48,7 +48,7 @@
48
48
 
49
49
  /* Override .material-icons-round text styling */
50
50
  font-family: Roboto-Regular, Roboto, sans-serif;
51
- line-height: @material-icons-width / 2;
51
+ line-height: calc(@material-icons-width / 2);
52
52
  white-space: nowrap;
53
53
  font-size: 13px;
54
54
 
@@ -60,10 +60,10 @@
60
60
 
61
61
  /* Positioning */
62
62
  position: absolute;
63
- bottom: @material-icons-width + 5px;
63
+ bottom: calc(@material-icons-width + 5px);
64
64
 
65
65
  /* Left attribute is set to half of the width of the parent button */
66
- left: @material-icons-width / 2;
66
+ left: calc(@material-icons-width / 2);
67
67
 
68
68
  /* The tooltip is also translated 50% to appear centered */
69
69
  .translateX(-0.5);
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
  *