shaka-player 3.2.11 → 3.2.12
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/selenium-lab-tests.yaml +158 -53
- package/CHANGELOG.md +9 -0
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/locales.js +29 -29
- package/dist/shaka-player.compiled.debug.js +6 -6
- package/dist/shaka-player.compiled.debug.map +2 -2
- package/dist/shaka-player.compiled.js +15 -15
- package/dist/shaka-player.compiled.map +2 -2
- package/dist/shaka-player.ui.debug.js +8 -8
- package/dist/shaka-player.ui.debug.map +2 -2
- package/dist/shaka-player.ui.js +26 -26
- package/dist/shaka-player.ui.map +2 -2
- package/lib/player.js +7 -1
- package/lib/text/ui_text_displayer.js +8 -0
- package/package.json +1 -1
- package/test/player_src_equals_integration.js +2 -0
- package/test/test/assets/small.mp4 +0 -0
- package/ui/less/ad_controls.less +4 -0
package/lib/player.js
CHANGED
|
@@ -4269,6 +4269,12 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
|
|
|
4269
4269
|
this.stats_.setBandwidthEstimate(estimate);
|
|
4270
4270
|
}
|
|
4271
4271
|
|
|
4272
|
+
if (this.loadMode_ == shaka.Player.LoadMode.SRC_EQUALS) {
|
|
4273
|
+
this.stats_.setResolution(
|
|
4274
|
+
/* width= */ element.videoWidth || NaN,
|
|
4275
|
+
/* height= */ element.videoHeight || NaN);
|
|
4276
|
+
}
|
|
4277
|
+
|
|
4272
4278
|
return this.stats_.getBlob();
|
|
4273
4279
|
}
|
|
4274
4280
|
|
|
@@ -6425,7 +6431,7 @@ shaka.Player.TYPICAL_BUFFERING_THRESHOLD_ = 0.5;
|
|
|
6425
6431
|
* @define {string} A version number taken from git at compile time.
|
|
6426
6432
|
* @export
|
|
6427
6433
|
*/
|
|
6428
|
-
shaka.Player.version = 'v3.2.
|
|
6434
|
+
shaka.Player.version = 'v3.2.12-uncompiled';
|
|
6429
6435
|
|
|
6430
6436
|
// Initialize the deprecation system using the version string we just set
|
|
6431
6437
|
// on the player.
|
|
@@ -498,6 +498,14 @@ shaka.text.UITextDisplayer = class {
|
|
|
498
498
|
style.backgroundRepeat = 'no-repeat';
|
|
499
499
|
style.backgroundSize = 'contain';
|
|
500
500
|
style.backgroundPosition = 'center';
|
|
501
|
+
|
|
502
|
+
// Quoting https://www.w3.org/TR/ttml-imsc1.2/:
|
|
503
|
+
// "The width and height (in pixels) of the image resource referenced by
|
|
504
|
+
// smpte:backgroundImage SHALL be equal to the width and height expressed
|
|
505
|
+
// by the tts:extent attribute of the region in which the div element is
|
|
506
|
+
// presented".
|
|
507
|
+
style.width = '100%';
|
|
508
|
+
style.height = '100%';
|
|
501
509
|
} else {
|
|
502
510
|
// If we have both text and nested cues, then style everything; otherwise
|
|
503
511
|
// place the text in its own <span> so the background doesn't fill the
|
package/package.json
CHANGED
|
@@ -305,6 +305,8 @@ describe('Player Src Equals', () => {
|
|
|
305
305
|
expect(stats.loadLatency).toBeGreaterThan(0);
|
|
306
306
|
expect(stats.manifestTimeSeconds).toBeNaN(); // There's no manifest.
|
|
307
307
|
expect(stats.drmTimeSeconds).toBeNaN(); // There's no DRM.
|
|
308
|
+
expect(stats.height).toBe(110);
|
|
309
|
+
expect(stats.width).toBe(256);
|
|
308
310
|
});
|
|
309
311
|
|
|
310
312
|
it('plays with external text tracks', async () => {
|
|
Binary file
|
package/ui/less/ad_controls.less
CHANGED
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
.ad-text-shadow();
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
.shaka-ad-controls .shaka-ad-position:not(.shaka-hidden) + .shaka-ad-counter {
|
|
75
|
+
margin-left: 0.75em;
|
|
76
|
+
}
|
|
77
|
+
|
|
74
78
|
.shaka-skip-ad-container {
|
|
75
79
|
/* Skip button is positioned at the very right edge of the
|
|
76
80
|
* video container unlike the rest of the bottom controls. */
|