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/.github/workflows/release-please.yaml +2 -0
- package/CHANGELOG.md +9 -0
- package/build/generateTsDefs.py +2 -0
- package/dist/controls.css +2 -2
- package/dist/controls.css.map +1 -1
- package/dist/locales.js +28 -28
- package/dist/shaka-player.compiled.d.ts +2 -0
- package/dist/shaka-player.compiled.debug.d.ts +2 -0
- package/dist/shaka-player.compiled.debug.js +1 -1
- package/dist/shaka-player.compiled.js +4 -4
- package/dist/shaka-player.ui.d.ts +2 -0
- package/dist/shaka-player.ui.debug.d.ts +2 -0
- package/dist/shaka-player.ui.debug.js +3 -3
- package/dist/shaka-player.ui.debug.map +2 -2
- package/dist/shaka-player.ui.js +6 -6
- package/dist/shaka-player.ui.map +2 -2
- package/lib/player.js +1 -1
- package/package.json +1 -1
- package/ui/less/ad_controls.less +2 -2
- package/ui/less/buttons.less +1 -1
- package/ui/less/containers.less +4 -4
- package/ui/less/range_elements.less +2 -2
- package/ui/seek_bar.js +2 -1
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.
|
|
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
package/ui/less/ad_controls.less
CHANGED
|
@@ -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;
|
package/ui/less/buttons.less
CHANGED
package/ui/less/containers.less
CHANGED
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
|
|
264
264
|
.shaka-spinner {
|
|
265
265
|
/* This uses the same trickery as the big play button define
|
|
266
|
-
|
|
267
|
-
|
|
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
|
-
|
|
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
|
|
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
|
*
|