shaka-player 4.3.9 → 4.4.0
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 +11 -18
- package/.github/workflows/compute-incremental-coverage.py +3 -0
- package/.github/workflows/release-please.yaml +7 -0
- package/.github/workflows/selenium-lab-tests.yaml +45 -10
- package/AUTHORS +9 -0
- package/CHANGELOG.md +295 -190
- package/CONTRIBUTORS +8 -0
- package/LICENSE +32 -0
- package/README.md +63 -10
- package/demo/autoTemplate.txt +40 -5
- package/demo/close_button.js +11 -0
- package/demo/common/asset.js +13 -1
- package/demo/common/assets.js +112 -28
- package/demo/common/message_ids.js +25 -1
- package/demo/config.js +69 -10
- package/demo/customWarning.txt +2 -2
- package/demo/index.html +3 -1
- package/demo/locales/en.json +26 -2
- package/demo/locales/source.json +105 -9
- package/demo/main.js +57 -9
- package/demo/search.js +3 -1
- package/demo/service_worker.js +3 -0
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/demo.compiled.debug.js +132 -118
- package/dist/demo.compiled.debug.map +3 -3
- package/dist/demo.compiled.js +132 -118
- package/dist/demo.compiled.map +3 -3
- package/dist/deps.js +46 -28
- package/dist/locales.js +31 -31
- package/dist/receiver.compiled.debug.js +60 -52
- package/dist/receiver.compiled.debug.map +3 -3
- package/dist/receiver.compiled.js +60 -52
- package/dist/receiver.compiled.map +3 -3
- package/dist/shaka-player.compiled.d.ts +676 -391
- package/dist/shaka-player.compiled.debug.d.ts +676 -391
- package/dist/shaka-player.compiled.debug.externs.js +1188 -616
- package/dist/shaka-player.compiled.debug.js +1046 -700
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +1188 -616
- package/dist/shaka-player.compiled.js +1094 -933
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +677 -392
- package/dist/shaka-player.ui.debug.d.ts +677 -392
- package/dist/shaka-player.ui.debug.externs.js +1023 -451
- package/dist/shaka-player.ui.debug.js +1101 -738
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +1023 -451
- package/dist/shaka-player.ui.js +1244 -1071
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/ad_monetization.md +15 -1
- package/docs/tutorials/application-level-redirects.md +1 -1
- package/docs/tutorials/config.md +9 -5
- package/docs/tutorials/drm-config.md +61 -0
- package/docs/tutorials/fairplay.md +19 -4
- package/docs/tutorials/license-server-auth.md +4 -4
- package/docs/tutorials/license-wrapping.md +2 -2
- package/docs/tutorials/ui-customization.md +7 -3
- package/docs/tutorials/ui.md +7 -7
- package/docs/tutorials/upgrade.md +3 -0
- package/externs/ima.js +123 -2
- package/externs/isoboxer.js +217 -0
- package/externs/mediakeys.js +18 -0
- package/externs/mux.js +1 -105
- package/externs/pictureinpicture.js +48 -0
- package/externs/shaka/ads.js +61 -1
- package/externs/shaka/cea.js +110 -0
- package/externs/shaka/codecs.js +32 -0
- package/externs/shaka/manifest.js +101 -1
- package/externs/shaka/manifest_parser.js +0 -10
- package/externs/shaka/net.js +36 -7
- package/externs/shaka/offline.js +8 -1
- package/externs/shaka/player.js +220 -21
- package/externs/shaka/text.js +1 -382
- package/externs/shaka/transmuxer.js +59 -0
- package/karma.conf.js +15 -0
- package/lib/abr/simple_abr_manager.js +6 -3
- package/lib/ads/ad_manager.js +60 -2
- package/lib/ads/client_side_ad.js +86 -0
- package/lib/ads/client_side_ad_manager.js +93 -5
- package/lib/ads/server_side_ad.js +86 -0
- package/lib/ads/server_side_ad_manager.js +13 -0
- package/lib/cast/cast_utils.js +1 -0
- package/lib/cea/cea608_data_channel.js +24 -14
- package/lib/cea/cea608_memory.js +5 -2
- package/lib/cea/cea708_service.js +8 -9
- package/lib/cea/cea708_window.js +1 -2
- package/lib/cea/cea_decoder.js +23 -6
- package/lib/cea/cea_utils.js +25 -2
- package/lib/cea/dummy_caption_decoder.js +21 -0
- package/lib/cea/dummy_cea_parser.js +1 -3
- package/lib/cea/mp4_cea_parser.js +15 -10
- package/lib/cea/ts_cea_parser.js +69 -0
- package/lib/dash/content_protection.js +32 -2
- package/lib/dash/dash_parser.js +93 -31
- package/lib/dash/mpd_utils.js +6 -25
- package/lib/dash/segment_base.js +12 -14
- package/lib/dash/segment_list.js +10 -6
- package/lib/dash/segment_template.js +349 -32
- package/lib/dependencies/all.js +8 -0
- package/lib/hls/hls_classes.js +33 -8
- package/lib/hls/hls_parser.js +805 -191
- package/lib/hls/manifest_text_parser.js +4 -14
- package/lib/media/adaptation_set_criteria.js +43 -3
- package/lib/media/closed_caption_parser.js +74 -12
- package/lib/media/drm_engine.js +189 -49
- package/lib/media/gap_jumping_controller.js +1 -1
- package/lib/media/manifest_parser.js +34 -0
- package/lib/media/media_source_capabilities.js +10 -0
- package/lib/media/media_source_engine.js +475 -231
- package/lib/media/playhead.js +1 -1
- package/lib/media/presentation_timeline.js +62 -0
- package/lib/media/segment_index.js +50 -14
- package/lib/media/segment_prefetch.js +277 -0
- package/lib/media/segment_reference.js +70 -4
- package/lib/media/streaming_engine.js +258 -81
- package/lib/media/video_wrapper.js +15 -7
- package/lib/mss/content_protection.js +353 -0
- package/lib/mss/mss_parser.js +1081 -0
- package/lib/net/networking_engine.js +60 -10
- package/lib/offline/indexeddb/v1_storage_cell.js +1 -0
- package/lib/offline/indexeddb/v2_storage_cell.js +1 -0
- package/lib/offline/manifest_converter.js +6 -0
- package/lib/offline/storage.js +2 -4
- package/lib/player.js +309 -105
- package/lib/polyfill/media_capabilities.js +43 -3
- package/lib/polyfill/patchedmediakeys_apple.js +5 -0
- package/lib/polyfill/patchedmediakeys_nop.js +5 -0
- package/lib/polyfill/patchedmediakeys_webkit.js +5 -0
- package/lib/text/cue.js +208 -130
- package/lib/text/lrc_text_parser.js +2 -2
- package/lib/text/mp4_vtt_parser.js +2 -2
- package/lib/text/sbv_text_parser.js +1 -1
- package/lib/text/simple_text_displayer.js +2 -1
- package/lib/text/srt_text_parser.js +9 -1
- package/lib/text/ssa_text_parser.js +2 -2
- package/lib/text/text_engine.js +3 -21
- package/lib/text/text_utils.js +71 -20
- package/lib/text/ui_text_displayer.js +14 -14
- package/lib/text/vtt_text_parser.js +22 -14
- package/lib/transmuxer/aac_transmuxer.js +224 -0
- package/lib/transmuxer/ac3.js +142 -0
- package/lib/transmuxer/ac3_transmuxer.js +212 -0
- package/lib/transmuxer/adts.js +232 -0
- package/lib/transmuxer/ec3.js +103 -0
- package/lib/transmuxer/ec3_transmuxer.js +212 -0
- package/lib/transmuxer/h264.js +324 -0
- package/lib/transmuxer/mp3_transmuxer.js +204 -0
- package/lib/transmuxer/mpeg_audio.js +196 -0
- package/lib/transmuxer/mpeg_ts_transmuxer.js +182 -0
- package/lib/transmuxer/mss_transmuxer.js +389 -0
- package/lib/{media/transmuxer.js → transmuxer/muxjs_transmuxer.js} +34 -80
- package/lib/transmuxer/transmuxer_engine.js +161 -0
- package/lib/transmuxer/ts_transmuxer.js +738 -0
- package/lib/util/cmcd_manager.js +131 -71
- package/lib/util/error.js +62 -26
- package/lib/util/exp_golomb.js +220 -0
- package/lib/util/fairplay_utils.js +64 -13
- package/lib/util/id3_utils.js +56 -3
- package/lib/util/language_utils.js +11 -8
- package/lib/util/manifest_parser_utils.js +3 -0
- package/lib/util/mime_utils.js +44 -7
- package/lib/util/mp4_box_parsers.js +233 -5
- package/lib/util/mp4_generator.js +1381 -0
- package/lib/util/periods.js +40 -34
- package/lib/util/platform.js +25 -3
- package/lib/util/player_configuration.js +38 -1
- package/lib/util/stream_utils.js +138 -27
- package/lib/util/text_parser.js +1 -1
- package/lib/util/ts_parser.js +470 -47
- package/lib/util/xml_utils.js +16 -3
- package/maintained-branches.md +2 -2
- package/package.json +4 -2
- package/roadmap.md +21 -6
- package/shaka-player.uncompiled.js +18 -0
- package/test/abr/simple_abr_manager_unit.js +32 -4
- package/test/ads/ad_manager_unit.js +18 -2
- package/test/cast/cast_utils_unit.js +7 -2
- package/test/cea/cea608_memory_unit.js +24 -0
- package/test/cea/cea_decoder_unit.js +33 -0
- package/test/dash/dash_parser_content_protection_unit.js +93 -3
- package/test/dash/dash_parser_live_unit.js +56 -13
- package/test/dash/dash_parser_manifest_unit.js +70 -2
- package/test/dash/dash_parser_segment_base_unit.js +14 -9
- package/test/dash/dash_parser_segment_template_unit.js +286 -6
- package/test/demo/demo_unit.js +5 -1
- package/test/hls/hls_live_unit.js +188 -28
- package/test/hls/hls_parser_unit.js +250 -109
- package/test/hls/manifest_text_parser_unit.js +18 -13
- package/test/media/adaptation_set_criteria_unit.js +46 -14
- package/test/media/adaptation_set_unit.js +2 -0
- package/test/media/drm_engine_integration.js +11 -8
- package/test/media/drm_engine_unit.js +220 -7
- package/test/media/media_source_engine_integration.js +122 -38
- package/test/media/media_source_engine_unit.js +133 -153
- package/test/media/playhead_unit.js +3 -0
- package/test/media/presentation_timeline_unit.js +51 -0
- package/test/media/segment_index_unit.js +52 -0
- package/test/media/segment_prefetch_unit.js +243 -0
- package/test/media/streaming_engine_integration.js +9 -3
- package/test/media/streaming_engine_unit.js +440 -59
- package/test/mss/mss_parser_content_protection_unit.js +49 -0
- package/test/mss/mss_parser_unit.js +472 -0
- package/test/mss/mss_player_integration.js +123 -0
- package/test/offline/manifest_convert_unit.js +9 -0
- package/test/offline/storage_integration.js +6 -1
- package/test/player_integration.js +4 -1
- package/test/player_unit.js +386 -133
- package/test/polyfill/media_capabilities_unit.js +18 -0
- package/test/test/assets/hls-raw-aac/fileSequence0.aac +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence1.aac +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence2.aac +0 -0
- package/test/test/assets/hls-raw-aac/fileSequence3.aac +0 -0
- package/test/test/assets/hls-raw-aac/manifest.m3u8 +4 -0
- package/test/test/assets/hls-raw-aac/stream.m4a.m3u8 +14 -0
- package/test/test/assets/hls-raw-ac3/fileSequence0.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence1.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence2.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence3.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence4.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence5.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence6.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/fileSequence7.ac3 +0 -0
- package/test/test/assets/hls-raw-ac3/prog_index.m3u8 +31 -0
- package/test/test/assets/hls-raw-ec3/fileSequence0.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence1.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence2.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence3.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence4.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence5.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence6.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/fileSequence7.ec3 +0 -0
- package/test/test/assets/hls-raw-ec3/prog_index.m3u8 +31 -0
- package/test/test/assets/hls-raw-mp3/chunklist_w905519204.m3u8 +13 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_0.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_1.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_2.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/media_w905519204_3.mp3 +0 -0
- package/test/test/assets/hls-raw-mp3/playlist.m3u8 +4 -0
- package/test/test/assets/hls-ts-aac/playlist.m3u8 +23 -0
- package/test/test/assets/hls-ts-aac/segment_0.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_1.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_2.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_3.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_4.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_5.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_6.ts +0 -0
- package/test/test/assets/hls-ts-aac/segment_7.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0000.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0001.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0002.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0003.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0004.ts +0 -0
- package/test/test/assets/hls-ts-ac3/ChID_voices_6ch_640kbps_dd_sub_0005.ts +0 -0
- package/test/test/assets/hls-ts-ac3/prog_index.m3u8 +19 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0000.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0001.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0002.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0003.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0004.ts +0 -0
- package/test/test/assets/hls-ts-ec3/ChID_voices_6ch_256kbps_ddp_sub_0005.ts +0 -0
- package/test/test/assets/hls-ts-ec3/prog_index.m3u8 +19 -0
- package/test/test/assets/hls-ts-h264/fileSequence0.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence1.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence2.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence3.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence4.ts +0 -0
- package/test/test/assets/hls-ts-h264/fileSequence5.ts +0 -0
- package/test/test/assets/hls-ts-h264/prog_index.m3u8 +25 -0
- package/test/test/assets/hls-ts-mp3/manifest.m3u8 +13 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_0.ts +0 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_1.ts +0 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_2.ts +0 -0
- package/test/test/assets/hls-ts-mp3/media_w239891843_3.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/chunk.m3u8 +17 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_0_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_1_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_2_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_3_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_4_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/n_5_0_0.ts +0 -0
- package/test/test/assets/hls-ts-muxed-aac-h264/playlist.m3u8 +4 -0
- package/test/test/boot.js +7 -2
- package/test/test/util/fake_ad.js +99 -0
- package/test/test/util/fake_ad_manager.js +7 -1
- package/test/test/util/fake_networking_engine.js +41 -14
- package/test/test/util/fake_segment_prefetch.js +81 -0
- package/test/test/util/manifest_generator.js +19 -5
- package/test/test/util/mss_parser_util.js +115 -0
- package/test/test/util/offline_utils.js +1 -0
- package/test/test/util/simple_fakes.js +12 -3
- package/test/test/util/streaming_engine_util.js +14 -4
- package/test/test/util/ttml_utils.js +2 -2
- package/test/test/util/ui_utils.js +5 -1
- package/test/text/cue_integration.js +1 -1
- package/test/text/srt_text_parser_unit.js +78 -0
- package/test/text/text_engine_unit.js +17 -8
- package/test/text/ui_text_displayer_unit.js +4 -4
- package/test/text/vtt_text_parser_unit.js +59 -40
- package/test/text/web_vtt_generator_unit.js +9 -3
- package/test/{media/transmuxer_integration.js → transmuxer/muxjs_transmuxer_integration.js} +30 -33
- package/test/transmuxer/transmuxer_engine_integration.js +60 -0
- package/test/transmuxer/transmuxer_integration.js +296 -0
- package/test/util/cmcd_manager_unit.js +162 -13
- package/test/util/language_utils_unit.js +9 -2
- package/test/util/mp4_box_parsers_unit.js +39 -4
- package/test/util/periods_unit.js +34 -26
- package/test/util/stream_utils_unit.js +60 -107
- package/ui/controls.js +19 -1
- package/ui/controls.less +1 -0
- package/ui/externs/ui.js +13 -3
- package/ui/language_utils.js +15 -0
- package/ui/less/thumbnails.less +26 -0
- package/ui/locales/oc.json +42 -0
- package/ui/pip_button.js +83 -2
- package/ui/range_element.js +15 -0
- package/ui/resolution_selection.js +9 -2
- package/ui/seek_bar.js +230 -1
- package/ui/ui.js +5 -0
- package/lib/cea/i_caption_decoder.js +0 -51
- package/lib/cea/i_cea_parser.js +0 -68
|
@@ -45,7 +45,7 @@ jobs:
|
|
|
45
45
|
# coverage instrumentation on full-stack player integration tests.
|
|
46
46
|
- os: ubuntu-latest
|
|
47
47
|
browser: Chrome
|
|
48
|
-
extra_flags: "--use-xvfb
|
|
48
|
+
extra_flags: "--use-xvfb"
|
|
49
49
|
- os: ubuntu-latest
|
|
50
50
|
browser: Firefox
|
|
51
51
|
extra_flags: "--use-xvfb"
|
|
@@ -70,6 +70,7 @@ jobs:
|
|
|
70
70
|
browser: Firefox
|
|
71
71
|
- os: windows-latest
|
|
72
72
|
browser: Edge
|
|
73
|
+
extra_flags: "--html-coverage-report --uncompiled"
|
|
73
74
|
|
|
74
75
|
# Disable fail-fast so that one matrix-job failing doesn't make the other
|
|
75
76
|
# ones end early.
|
|
@@ -87,19 +88,6 @@ jobs:
|
|
|
87
88
|
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'Firefox'
|
|
88
89
|
run: sudo apt -y update && sudo apt -y install ffmpeg
|
|
89
90
|
|
|
90
|
-
# Edge 107 fails DRM tests due to an outdated Widevine CDM. Force Edge
|
|
91
|
-
# to update to 108+.
|
|
92
|
-
- name: Upgrade Edge
|
|
93
|
-
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'Edge'
|
|
94
|
-
run: |
|
|
95
|
-
# If it's Edge 107, update it. Otherwise, don't. This way, we don't
|
|
96
|
-
# break something later when Edge 108+ is available by default in
|
|
97
|
-
# GitHub Actions.
|
|
98
|
-
if apt show microsoft-edge-stable | grep -q '^Version: 107'; then
|
|
99
|
-
wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_108.0.1462.46-1_amd64.deb
|
|
100
|
-
sudo dpkg -i microsoft-edge-stable_108.0.1462.46-1_amd64.deb
|
|
101
|
-
fi
|
|
102
|
-
|
|
103
91
|
- name: Checkout code
|
|
104
92
|
uses: actions/checkout@v3
|
|
105
93
|
with:
|
|
@@ -125,13 +113,18 @@ jobs:
|
|
|
125
113
|
# Install a launcher that can execute a shell script to launch this
|
|
126
114
|
npm install karma-script-launcher --save-dev
|
|
127
115
|
|
|
128
|
-
# When "Chrome for Testing" is installed on Mac, it gets
|
|
129
|
-
# of simply "Chrome". This other copy of Chrome,
|
|
130
|
-
# to have basic codecs like AAC and H264 available,
|
|
131
|
-
# test scenarios to fail. Deleting "Chrome for
|
|
116
|
+
# When "Chrome for Testing" is installed on Mac or Windows, it gets
|
|
117
|
+
# invoked instead of simply "Chrome". This other copy of Chrome,
|
|
118
|
+
# however, doesn't seem to have basic codecs like AAC and H264 available,
|
|
119
|
+
# causing many of our test scenarios to fail. Deleting "Chrome for
|
|
120
|
+
# Testing" fixes this.
|
|
132
121
|
- name: 'Delete "Chrome for Testing" on Mac'
|
|
133
122
|
if: matrix.os == 'macos-latest' && matrix.browser == 'Chrome'
|
|
134
123
|
run: sudo rm -rf /Applications/Google\ Chrome\ for\ Testing.app
|
|
124
|
+
- name: 'Overwrite "Chrome for Testing" on Windows'
|
|
125
|
+
if: matrix.os == 'windows-latest' && matrix.browser == 'Chrome'
|
|
126
|
+
shell: bash
|
|
127
|
+
run: choco install -y googlechrome --ignore-checksums
|
|
135
128
|
|
|
136
129
|
# Some CI images (self-hosted or otherwise) don't have the minimum Java
|
|
137
130
|
# version necessary for the compiler (Java 11).
|
|
@@ -24,6 +24,9 @@ import zipfile
|
|
|
24
24
|
|
|
25
25
|
# TODO(joeyparrish): Figure out how to get karma to output relative paths only.
|
|
26
26
|
def StripGitDir(path):
|
|
27
|
+
# Convert Windows-style paths to Unix-style paths so we can read coverage
|
|
28
|
+
# data from Windows runners, too.
|
|
29
|
+
path = path.replace('\\', '/')
|
|
27
30
|
# Strip the path to the git clone, leaving only the source path within the
|
|
28
31
|
# repo.
|
|
29
32
|
return re.sub(r'.*?/(lib|ui)/', r'\1/', path)
|
|
@@ -17,6 +17,13 @@ jobs:
|
|
|
17
17
|
- uses: google-github-actions/release-please-action@v3
|
|
18
18
|
id: release
|
|
19
19
|
with:
|
|
20
|
+
# This command instructs the tool to use the config and manifest
|
|
21
|
+
# files below to decide the next version and the SHA of the previous
|
|
22
|
+
# release (used to compute the changelog). This is necessary if
|
|
23
|
+
# there are more than 250 commits between main branch releases.
|
|
24
|
+
command: manifest
|
|
25
|
+
config-file: .release-please-config.json
|
|
26
|
+
manifest-file: .release-please-manifest.json
|
|
20
27
|
# Required input to specify the release type (node package).
|
|
21
28
|
release-type: node
|
|
22
29
|
# Make sure we create the PR against the correct branch.
|
|
@@ -148,6 +148,30 @@ jobs:
|
|
|
148
148
|
- name: Build Player
|
|
149
149
|
run: python3 build/all.py
|
|
150
150
|
|
|
151
|
+
- name: Preprocess with Babel
|
|
152
|
+
run: |
|
|
153
|
+
# Run the test preprocessor without running the actual tests.
|
|
154
|
+
# This lets us cache Babel's output and run it only once.
|
|
155
|
+
# Ignore the exit code, since you get an error code if the filter
|
|
156
|
+
# excludes all tests.
|
|
157
|
+
./build/test.py \
|
|
158
|
+
--use-xvfb --browsers Chrome \
|
|
159
|
+
--filter ThisFilterMatchesNoTests || true
|
|
160
|
+
|
|
161
|
+
- name: Cache dependencies
|
|
162
|
+
uses: actions/cache@v3
|
|
163
|
+
id: npm-cache
|
|
164
|
+
with:
|
|
165
|
+
path: node_modules/
|
|
166
|
+
key: node-${{ hashFiles('package-lock.json') }}
|
|
167
|
+
|
|
168
|
+
- name: Cache Babel output
|
|
169
|
+
uses: actions/cache@v3
|
|
170
|
+
id: babel-cache
|
|
171
|
+
with:
|
|
172
|
+
path: .babel-cache
|
|
173
|
+
key: babel-${{ hashFiles('*.js', 'demo/**.js', 'lib/**.js', 'ui/**.js', 'test/**.js', 'third_party/**.js') }}
|
|
174
|
+
|
|
151
175
|
- name: Store Player build
|
|
152
176
|
uses: actions/upload-artifact@v3
|
|
153
177
|
with:
|
|
@@ -206,6 +230,17 @@ jobs:
|
|
|
206
230
|
with:
|
|
207
231
|
path: node_modules/
|
|
208
232
|
key: node-${{ hashFiles('package-lock.json') }}
|
|
233
|
+
fail-on-cache-miss: true # Cached by the build-shaka job above
|
|
234
|
+
enableCrossOsArchive: true # Share archives from Linux to Windows
|
|
235
|
+
|
|
236
|
+
- name: Cache Babel output
|
|
237
|
+
uses: actions/cache@v3
|
|
238
|
+
id: babel-cache
|
|
239
|
+
with:
|
|
240
|
+
path: .babel-cache
|
|
241
|
+
key: babel-${{ hashFiles('*.js', 'demo/**.js', 'lib/**.js', 'ui/**.js', 'test/**.js', 'third_party/**.js') }}
|
|
242
|
+
fail-on-cache-miss: true # Cached by the build-shaka job above
|
|
243
|
+
enableCrossOsArchive: true # Share archives from Linux to Windows
|
|
209
244
|
|
|
210
245
|
- name: Install dependencies
|
|
211
246
|
if: steps.npm-cache.outputs.cache-hit != 'true'
|
|
@@ -221,9 +256,9 @@ jobs:
|
|
|
221
256
|
|
|
222
257
|
# Run tests on the Selenium grid in our lab. This uses a private
|
|
223
258
|
# hostname and TLS cert to get EME tests working on all platforms
|
|
224
|
-
# (since EME only works on https or localhost). The variable
|
|
225
|
-
# must be defined by the self-hosted runner, and mapped
|
|
226
|
-
# the container.
|
|
259
|
+
# (since EME only works on https or localhost). The variable
|
|
260
|
+
# ALLOCATED_PORT must be defined by the self-hosted runner, and mapped
|
|
261
|
+
# from the host to the container.
|
|
227
262
|
- name: Test Player
|
|
228
263
|
run: |
|
|
229
264
|
# Use of an array keeps elements intact, and allows an element to
|
|
@@ -234,7 +269,7 @@ jobs:
|
|
|
234
269
|
# Generate a coverage report from uncompiled code on ChromeLinux.
|
|
235
270
|
# It should be the uncompiled build, or else we won't execute any
|
|
236
271
|
# coverage instrumentation on full-stack player integration tests.
|
|
237
|
-
if [[ "${{ matrix.browser }}" == "
|
|
272
|
+
if [[ "${{ matrix.browser }}" == "Edge" ]]; then
|
|
238
273
|
extra_flags+=(--html-coverage-report --uncompiled)
|
|
239
274
|
fi
|
|
240
275
|
|
|
@@ -254,7 +289,7 @@ jobs:
|
|
|
254
289
|
--tls-key /etc/letsencrypt/live/karma.shakalab.rocks/privkey.pem \
|
|
255
290
|
--tls-cert /etc/letsencrypt/live/karma.shakalab.rocks/fullchain.pem \
|
|
256
291
|
--hostname karma.shakalab.rocks \
|
|
257
|
-
--port $
|
|
292
|
+
--port $ALLOCATED_PORT \
|
|
258
293
|
--grid-config build/shaka-lab.yaml \
|
|
259
294
|
--grid-address selenium-grid.lab.shaka:4444 \
|
|
260
295
|
--browsers ${{ matrix.browser }} \
|
|
@@ -271,10 +306,10 @@ jobs:
|
|
|
271
306
|
# Report the captured (and possibly overridden) exit status.
|
|
272
307
|
exit $exit_code
|
|
273
308
|
|
|
274
|
-
- name: Find coverage report (
|
|
309
|
+
- name: Find coverage report (Edge only)
|
|
275
310
|
id: coverage
|
|
276
|
-
# Run even if an earlier step fails, but only on
|
|
277
|
-
if: ${{ always() && matrix.browser == '
|
|
311
|
+
# Run even if an earlier step fails, but only on Edge.
|
|
312
|
+
if: ${{ always() && matrix.browser == 'Edge' }}
|
|
278
313
|
shell: bash
|
|
279
314
|
run: |
|
|
280
315
|
# Find the path to the coverage report specifically for Chrome on
|
|
@@ -282,7 +317,7 @@ jobs:
|
|
|
282
317
|
# will vary. Having a single path will make the artifact zip
|
|
283
318
|
# simpler, whereas using a wildcard in the upload step will result
|
|
284
319
|
# in a zip file with internal directories.
|
|
285
|
-
coverage_report="$( (ls coverage/
|
|
320
|
+
coverage_report="$( (ls coverage/Edge*/coverage.json || true) | head -1 )"
|
|
286
321
|
|
|
287
322
|
# Show what's there, for debugging purposes.
|
|
288
323
|
ls -l coverage/
|
|
@@ -295,7 +330,7 @@ jobs:
|
|
|
295
330
|
exit 1
|
|
296
331
|
fi
|
|
297
332
|
|
|
298
|
-
- name: Upload coverage report (
|
|
333
|
+
- name: Upload coverage report (Edge only)
|
|
299
334
|
uses: actions/upload-artifact@v3
|
|
300
335
|
# If there's a coverage report, upload it, even if a previous step
|
|
301
336
|
# failed.
|
package/AUTHORS
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
Adrián Gómez Llorente <adgllorente@gmail.com>
|
|
17
17
|
AdsWizz <*@adswizz.com>
|
|
18
|
+
Albin Larsson <albin.larsson@eyevinn.se>
|
|
18
19
|
Alex Jones <alexedwardjones@gmail.com>
|
|
19
20
|
Alugha GmbH <*@alugha.com>
|
|
20
21
|
Alvaro Velad Galvan <ladvan91@hotmail.com>
|
|
@@ -27,11 +28,14 @@ Charter Communications Inc <*@charter.com>
|
|
|
27
28
|
Code It <*@code-it.fr>
|
|
28
29
|
Damien Deis <developer.deis@gmail.com>
|
|
29
30
|
Dany L'Hébreux <danylhebreux@gmail.com>
|
|
31
|
+
Dave Nicholas <davenicholasuk@gmail.com>
|
|
32
|
+
Davide Zordan <mail@davide.dev>
|
|
30
33
|
Dl Dador <dldador@gmail.com>
|
|
31
34
|
Edgeware AB <*@edgeware.tv>
|
|
32
35
|
Enson Choy <enson.choy@harmonicinc.com>
|
|
33
36
|
Esteban Dosztal <edosztal@gmail.com>
|
|
34
37
|
Fadomire <fadomire@gmail.com>
|
|
38
|
+
Fernando Neira <slocomber@gmail.com>
|
|
35
39
|
Gerardo Meola <meola.gerardo@gmail.com>
|
|
36
40
|
Gil Gonen <gil.gonen@gmail.com>
|
|
37
41
|
Giorgio Gamberoni <giorgio.gamberoni@gmail.com>
|
|
@@ -40,6 +44,7 @@ Google Inc. <*@google.com>
|
|
|
40
44
|
Itay Kinnrot <Itay.Kinnrot@Kaltura.com>
|
|
41
45
|
Jaeseok Lee <devsunb@gmail.com>
|
|
42
46
|
Jason Palmer <jason@jason-palmer.com>
|
|
47
|
+
Jean-alexandre Iragne <jairagne@gmail.com>
|
|
43
48
|
Jesper Haug Karsrud <jesper.karsrud@gmail.com>
|
|
44
49
|
Johan Sundström <oyasumi@gmail.com>
|
|
45
50
|
Jonas Birmé <jonas.birme@eyevinn.se>
|
|
@@ -47,6 +52,7 @@ Jozef Chúťka <jozefchutka@gmail.com>
|
|
|
47
52
|
Jun Hong Chong <chongjunhong@gmail.com>
|
|
48
53
|
Jürgen Kartnaller <kartnaller@lovelysystems.com>
|
|
49
54
|
JW Player <*@jwplayer.com>
|
|
55
|
+
Konstantin Grushetsky <github@grushetsky.net>
|
|
50
56
|
Lucas Gabriel Sánchez <unkiwii@gmail.com>
|
|
51
57
|
Martin Stark <martin.stark@eyevinn.se>
|
|
52
58
|
Matthias Van Parijs <matvp91@gmail.com>
|
|
@@ -78,6 +84,7 @@ Seongryun Jo <ocipap0531@gmail.com>
|
|
|
78
84
|
Swank Motion Pictures Inc. <*@swankmp.com>
|
|
79
85
|
TalkTalk Plc <*@talktalkplc.com>
|
|
80
86
|
Tatsiana Gelahova <tatsiana.gelahova@gmail.com>
|
|
87
|
+
Tian Shao <tyrelltle@gmail.com>
|
|
81
88
|
Tomas Tichy <mr.tichyt@gmail.com>
|
|
82
89
|
Tomohiro Matsuzawa <thmatuza75@hotmail.com>
|
|
83
90
|
Toshihiro Suzuki <t.suzuki326@gmail.com>
|
|
@@ -87,6 +94,8 @@ ViacomCBS <*@viacomcbs.com>
|
|
|
87
94
|
Vincent Valot <valot.vince@gmail.com>
|
|
88
95
|
V-Nova Limited <*@v-nova.com>
|
|
89
96
|
Wayne Morgan <wayne.morgan.dev@gmail.com>
|
|
97
|
+
Wen Ren <renwen0615@gmail.com>
|
|
98
|
+
Wojciech Tyczyński <tykus160@gmail.com>
|
|
90
99
|
Raymond Cheng <raycheng100@gmail.com>
|
|
91
100
|
Blue Billywig <*@bluebillywig.com>
|
|
92
101
|
João Nabais <jlnabais@gmail.com>
|