shaka-player 4.2.1 → 4.2.2
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/build-and-test.yaml +31 -16
- package/.github/workflows/custom-actions/set-commit-status/action.yaml +1 -5
- package/.github/workflows/deflake.yaml +28 -0
- package/.github/workflows/selenium-lab-tests.yaml +13 -4
- package/AUTHORS +3 -0
- package/CHANGELOG.md +19 -0
- package/CONTRIBUTORS +3 -0
- package/demo/common/message_ids.js +1 -0
- package/demo/config.js +3 -1
- package/demo/locales/en.json +1 -0
- package/demo/locales/source.json +4 -0
- package/dist/demo.compiled.debug.js +7 -6
- package/dist/demo.compiled.debug.map +3 -3
- package/dist/demo.compiled.js +7 -6
- package/dist/demo.compiled.map +3 -3
- package/dist/deps.js +2 -2
- package/dist/locales.js +32 -32
- package/dist/receiver.compiled.debug.js +4 -3
- package/dist/receiver.compiled.debug.map +3 -3
- package/dist/receiver.compiled.js +4 -3
- package/dist/receiver.compiled.map +3 -3
- package/dist/shaka-player.compiled.d.ts +2 -2
- package/dist/shaka-player.compiled.debug.d.ts +2 -2
- package/dist/shaka-player.compiled.debug.externs.js +24 -24
- package/dist/shaka-player.compiled.debug.js +237 -229
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +24 -24
- package/dist/shaka-player.compiled.js +744 -741
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +2 -2
- package/dist/shaka-player.ui.debug.d.ts +2 -2
- package/dist/shaka-player.ui.debug.externs.js +24 -24
- package/dist/shaka-player.ui.debug.js +212 -203
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +24 -24
- package/dist/shaka-player.ui.js +905 -901
- package/dist/shaka-player.ui.map +4 -4
- package/docs/jsdoc-template/publish.js +33 -0
- package/docs/jsdoc-template/tmpl/container.tmpl +4 -1
- package/docs/jsdoc.conf.json +1 -0
- package/externs/shaka/manifest_parser.js +4 -1
- package/externs/shaka/player.js +7 -1
- package/lib/ads/client_side_ad_manager.js +7 -0
- package/lib/cast/cast_sender.js +39 -14
- package/lib/cea/cea608_memory.js +4 -0
- package/lib/hls/hls_parser.js +30 -8
- package/lib/media/drm_engine.js +52 -1
- package/lib/media/media_source_engine.js +43 -15
- package/lib/media/segment_index.js +4 -1
- package/lib/media/streaming_engine.js +79 -14
- package/lib/offline/storage.js +1 -0
- package/lib/player.js +17 -5
- package/lib/text/ttml_text_parser.js +6 -0
- package/lib/util/platform.js +24 -0
- package/lib/util/player_configuration.js +4 -0
- package/lib/util/pssh.js +2 -1
- package/lib/util/stream_utils.js +2 -1
- package/package.json +1 -1
- package/test/cea/cea608_memory_unit.js +88 -0
- package/test/dash/dash_parser_content_protection_unit.js +1 -0
- package/test/dash/dash_parser_live_unit.js +1 -0
- package/test/dash/dash_parser_manifest_unit.js +1 -0
- package/test/dash/dash_parser_segment_base_unit.js +1 -0
- package/test/dash/dash_parser_segment_list_unit.js +1 -0
- package/test/dash/dash_parser_segment_template_unit.js +1 -0
- package/test/hls/hls_live_unit.js +169 -247
- package/test/hls/hls_parser_unit.js +60 -2
- package/test/media/drm_engine_unit.js +61 -0
- package/test/media/media_source_engine_integration.js +36 -0
- package/test/media/media_source_engine_unit.js +118 -1
- package/test/media/segment_index_unit.js +28 -2
- package/test/media/streaming_engine_integration.js +9 -7
- package/test/media/streaming_engine_unit.js +29 -0
- package/test/offline/offline_integration.js +3 -3
- package/test/player_integration.js +2 -2
- package/test/test/util/dash_parser_util.js +2 -0
- package/test/test/util/ttml_utils.js +0 -2
- package/test/text/ttml_text_parser_unit.js +46 -0
- package/test/ui/text_displayer_layout_unit.js +17 -2
- package/ui/controls.js +0 -7
|
@@ -219,6 +219,21 @@ filterDescribe('TextDisplayer layout', supportsScreenshots, () => {
|
|
|
219
219
|
|
|
220
220
|
/** @param {string} prefix Prepended to screenshot names */
|
|
221
221
|
function defineTests(prefix) {
|
|
222
|
+
// Due to a Safari implementation bug, the browser only does the correct
|
|
223
|
+
// thing for "end-time-edge-case" on Safari 16+. Skip the tests on earlier
|
|
224
|
+
// versions.
|
|
225
|
+
const safariVersion = shaka.util.Platform.safariVersion();
|
|
226
|
+
if (prefix == 'native' && safariVersion && safariVersion < 16) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Due to updates in the rendering and/or default styles in Chrome, the
|
|
231
|
+
// screenshots for native rendering only match in Chrome 106+.
|
|
232
|
+
const chromeVersion = shaka.util.Platform.chromeVersion();
|
|
233
|
+
if (prefix == 'native' && chromeVersion && chromeVersion < 106) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
|
|
222
237
|
it('basic cue', async () => {
|
|
223
238
|
textDisplayer.append([
|
|
224
239
|
new shaka.text.Cue(0, 1, 'Captain\'s log, stardate 41636.9'),
|
|
@@ -262,8 +277,8 @@ filterDescribe('TextDisplayer layout', supportsScreenshots, () => {
|
|
|
262
277
|
|
|
263
278
|
// Regression test for #3151
|
|
264
279
|
// Only one cue should be displayed. Note, however, that we don't control
|
|
265
|
-
// this in a browser's native display. As of
|
|
266
|
-
// the right thing in native text display. Chrome
|
|
280
|
+
// this in a browser's native display. As of Sep 2022, both Firefox and
|
|
281
|
+
// Safari>=16 do the right thing in native text display. Chrome and Edge
|
|
267
282
|
// show both cues in this edge case. When we control the display of text
|
|
268
283
|
// through the UI & DOM, we can always get the timing right.
|
|
269
284
|
it('cues ending exactly now', async () => {
|
package/ui/controls.js
CHANGED
|
@@ -1011,13 +1011,6 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
|
|
|
1011
1011
|
await this.onScreenRotation_();
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
|
-
|
|
1015
|
-
this.eventManager_.listen(document, 'fullscreenchange', () => {
|
|
1016
|
-
if (this.ad_) {
|
|
1017
|
-
this.ad_.resize(
|
|
1018
|
-
this.localVideo_.offsetWidth, this.localVideo_.offsetHeight);
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
1014
|
}
|
|
1022
1015
|
|
|
1023
1016
|
|