shaka-player 4.2.6 → 4.2.8

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.
Files changed (51) hide show
  1. package/.github/workflows/selenium-lab-tests.yaml +22 -0
  2. package/CHANGELOG.md +36 -0
  3. package/dist/deps.js +4 -3
  4. package/dist/locales.js +30 -30
  5. package/dist/shaka-player.compiled.d.ts +10 -0
  6. package/dist/shaka-player.compiled.debug.d.ts +10 -0
  7. package/dist/shaka-player.compiled.debug.externs.js +12 -0
  8. package/dist/shaka-player.compiled.debug.js +177 -166
  9. package/dist/shaka-player.compiled.debug.map +4 -4
  10. package/dist/shaka-player.compiled.externs.js +12 -0
  11. package/dist/shaka-player.compiled.js +672 -666
  12. package/dist/shaka-player.compiled.map +4 -4
  13. package/dist/shaka-player.ui.d.ts +10 -0
  14. package/dist/shaka-player.ui.debug.d.ts +10 -0
  15. package/dist/shaka-player.ui.debug.externs.js +12 -0
  16. package/dist/shaka-player.ui.debug.js +189 -179
  17. package/dist/shaka-player.ui.debug.map +4 -4
  18. package/dist/shaka-player.ui.externs.js +12 -0
  19. package/dist/shaka-player.ui.js +820 -815
  20. package/dist/shaka-player.ui.map +4 -4
  21. package/lib/dash/segment_template.js +17 -5
  22. package/lib/hls/hls_parser.js +53 -16
  23. package/lib/media/media_source_engine.js +34 -4
  24. package/lib/media/segment_index.js +5 -10
  25. package/lib/media/segment_reference.js +39 -0
  26. package/lib/media/streaming_engine.js +15 -3
  27. package/lib/player.js +7 -1
  28. package/lib/polyfill/media_capabilities.js +4 -1
  29. package/lib/text/simple_text_displayer.js +2 -64
  30. package/lib/text/text_utils.js +88 -0
  31. package/lib/text/ui_text_displayer.js +24 -9
  32. package/lib/text/vtt_text_parser.js +256 -95
  33. package/lib/text/web_vtt_generator.js +2 -52
  34. package/lib/util/dom_utils.js +3 -1
  35. package/lib/util/platform.js +8 -0
  36. package/lib/util/stream_utils.js +6 -0
  37. package/lib/util/timer.js +17 -0
  38. package/package.json +1 -1
  39. package/support.html +1 -0
  40. package/test/dash/dash_parser_manifest_unit.js +0 -36
  41. package/test/hls/hls_live_unit.js +8 -30
  42. package/test/hls/hls_parser_unit.js +30 -0
  43. package/test/media/segment_index_unit.js +28 -0
  44. package/test/player_integration.js +27 -0
  45. package/test/player_unit.js +4 -2
  46. package/test/test/util/layout_tests.js +433 -0
  47. package/test/test/util/util.js +0 -120
  48. package/test/{ui → text}/text_displayer_layout_unit.js +59 -235
  49. package/test/text/ui_text_displayer_unit.js +72 -4
  50. package/test/text/vtt_text_parser_unit.js +123 -6
  51. package/test/text/web_vtt_layout_integration.js +528 -0
@@ -8,6 +8,9 @@ on:
8
8
  pr:
9
9
  description: "A PR number to build and test in the lab. If empty, will build and test from main."
10
10
  required: false
11
+ test_filter:
12
+ description: "A filter to run a subset of the tests. If empty, all tests will run."
13
+ required: false
11
14
  schedule:
12
15
  # Runs every night at 2am PST / 10am UTC, testing against the main branch.
13
16
  - cron: '0 10 * * *'
@@ -191,6 +194,11 @@ jobs:
191
194
  extra_flags=""
192
195
  fi
193
196
 
197
+ filter="${{ github.event.inputs.test_filter }}"
198
+ if [[ "$filter" != "" ]]; then
199
+ extra_flags="$extra_flags --filter $filter"
200
+ fi
201
+
194
202
  python3 build/test.py \
195
203
  --no-build \
196
204
  --reporters spec --spec-hide-passed \
@@ -241,6 +249,20 @@ jobs:
241
249
  # there.
242
250
  if-no-files-found: error
243
251
 
252
+ # Upload new screenshots and diffs on failure; ignore if missing
253
+ - name: Upload screenshots
254
+ uses: actions/upload-artifact@v3
255
+ if: ${{ failure() }}
256
+ with:
257
+ # In this workflow, "browser" is the selenium node name, which can
258
+ # contain both browser and OS, such as "ChromeLinux".
259
+ name: screenshots-${{ matrix.browser }}
260
+ path: |
261
+ test/test/assets/screenshots/*/*.png-new
262
+ test/test/assets/screenshots/*/*.png-diff
263
+ if-no-files-found: ignore
264
+ retention-days: 5
265
+
244
266
  - name: Report final commit status
245
267
  # Will run on success or failure, but not if the workflow is cancelled.
246
268
  if: ${{ success() || failure() }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.2.8](https://github.com/shaka-project/shaka-player/compare/v4.2.7...v4.2.8) (2023-01-31)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Add mux.js to support.html ([#4923](https://github.com/shaka-project/shaka-player/issues/4923)) ([4c46595](https://github.com/shaka-project/shaka-player/commit/4c46595ed6dd087cae22a8f26efcb77f125f3ec5))
9
+ * **DASH:** Fix dynamic manifests from edgeware ([#4914](https://github.com/shaka-project/shaka-player/issues/4914)) ([247229b](https://github.com/shaka-project/shaka-player/commit/247229b7ea996b4eb43dc09d68fe212f4705045b))
10
+ * Fix MediaCapabilities polyfill on Hisense ([#4927](https://github.com/shaka-project/shaka-player/issues/4927)) ([8b694f0](https://github.com/shaka-project/shaka-player/commit/8b694f051a2119a6dc4d27cf9fbe3b51a1a12e41))
11
+ * Fix WebVTT parser failure on REGION blocks ([#4915](https://github.com/shaka-project/shaka-player/issues/4915)) ([39ba2e8](https://github.com/shaka-project/shaka-player/commit/39ba2e83a291f115972f9e0348621535bafdb794))
12
+ * **HLS:** Fix detection of WebVTT subtitles in HLS by extension ([#4928](https://github.com/shaka-project/shaka-player/issues/4928)) ([b0eb356](https://github.com/shaka-project/shaka-player/commit/b0eb356c6e528171a6134ed16ad223c86238267f)), closes [#4929](https://github.com/shaka-project/shaka-player/issues/4929)
13
+ * **VTT:** Fix combining style selectors ([#4934](https://github.com/shaka-project/shaka-player/issues/4934)) ([c036c53](https://github.com/shaka-project/shaka-player/commit/c036c53b2e86e99adeb8c9f583e8952e47a2a680))
14
+ * **WebVTT:** Add support to  , ‎ and ‏ ([#4920](https://github.com/shaka-project/shaka-player/issues/4920)) ([3fa6ff0](https://github.com/shaka-project/shaka-player/commit/3fa6ff0cb36c24b98f5f40fecc52be197ffc1410))
15
+ * **WebVTT:** Add support to voice tag styles ([#4845](https://github.com/shaka-project/shaka-player/issues/4845)) ([e8465a2](https://github.com/shaka-project/shaka-player/commit/e8465a2e1c1999d1b2bae3cc2819f8a2666bf7c6))
16
+ * **WebVTT:** Fix horizontal positioning with cue box size ([#4949](https://github.com/shaka-project/shaka-player/issues/4949)) ([74d399d](https://github.com/shaka-project/shaka-player/commit/74d399d6bf5fe3029fc37f8f3a783a16606fe8db))
17
+ * **WebVTT:** Fix voices with styles and support to multiple styles ([#4922](https://github.com/shaka-project/shaka-player/issues/4922)) ([355a59f](https://github.com/shaka-project/shaka-player/commit/355a59f76da96c78e0aef4eef5e6de2f5e0ff2b6))
18
+
19
+ ## [4.2.7](https://github.com/shaka-project/shaka-player/compare/v4.2.6...v4.2.7) (2023-01-13)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * Fix exception enabling captions on HLS ([#4894](https://github.com/shaka-project/shaka-player/issues/4894)) ([45b3705](https://github.com/shaka-project/shaka-player/commit/45b37053e0a28ba0f4ee3ca09f8e35e1734caec4)), closes [#4889](https://github.com/shaka-project/shaka-player/issues/4889)
25
+ * Fix flattenedCues in WebVttGenerator ([#4867](https://github.com/shaka-project/shaka-player/issues/4867)) ([2b37820](https://github.com/shaka-project/shaka-player/commit/2b37820fecf23ba8876200cb80626d5454d90b3d))
26
+ * Fix legacy codec support by rewriting codec metadata ([#4858](https://github.com/shaka-project/shaka-player/issues/4858)) ([102c3d9](https://github.com/shaka-project/shaka-player/commit/102c3d902fba987c66c94f1d698ba28bcc0d9203))
27
+ * Fix media source duration when using sequence mode ([#4848](https://github.com/shaka-project/shaka-player/issues/4848)) ([177638c](https://github.com/shaka-project/shaka-player/commit/177638c0e47fb4e6461beefbc3164055f6a47e4b))
28
+ * Fix parsing error on Chromecast when resyncing HLS ([#4869](https://github.com/shaka-project/shaka-player/issues/4869)) ([13e7481](https://github.com/shaka-project/shaka-player/commit/13e7481915fb81430c3566ca91dffa9c13f32412)), closes [#4589](https://github.com/shaka-project/shaka-player/issues/4589)
29
+ * Fix potential AV sync issues after seek or adaptation ([#4886](https://github.com/shaka-project/shaka-player/issues/4886)) ([ac3afb4](https://github.com/shaka-project/shaka-player/commit/ac3afb45c4727abae9ca075597c82bc2a5f24754)), closes [#4589](https://github.com/shaka-project/shaka-player/issues/4589)
30
+ * Fix potential duplicate segments, AV sync issues ([#4884](https://github.com/shaka-project/shaka-player/issues/4884)) ([45b6ccb](https://github.com/shaka-project/shaka-player/commit/45b6ccb96d56ca9338ec7cd458abed0f1702f673)), closes [#4589](https://github.com/shaka-project/shaka-player/issues/4589)
31
+ * **HLS:** Fix discontinuity tracking ([#4881](https://github.com/shaka-project/shaka-player/issues/4881)) ([13d29fd](https://github.com/shaka-project/shaka-player/commit/13d29fd06d7cbf14241ea2507114ff34daeb760e)), closes [#4589](https://github.com/shaka-project/shaka-player/issues/4589)
32
+ * **HLS:** Fix support for mixed AES-128/NONE decryption ([#4847](https://github.com/shaka-project/shaka-player/issues/4847)) ([e866903](https://github.com/shaka-project/shaka-player/commit/e866903a845f375cc0a00ee2d2dd1419faaa6e4b))
33
+ * Make encoding problem detection more robust ([#4885](https://github.com/shaka-project/shaka-player/issues/4885)) ([208c2e2](https://github.com/shaka-project/shaka-player/commit/208c2e298fc53a83fa6842c0a754b6a82c817fdb)), closes [#4589](https://github.com/shaka-project/shaka-player/issues/4589)
34
+ * Release region timeline when unloading ([#4871](https://github.com/shaka-project/shaka-player/issues/4871)) ([af1ee47](https://github.com/shaka-project/shaka-player/commit/af1ee4719016f4bfbaa56e3d1ebfea88b90057bc)), closes [#4850](https://github.com/shaka-project/shaka-player/issues/4850)
35
+ * Sync each segment against EXT-X-PROGRAM-DATE-TIME ([#4870](https://github.com/shaka-project/shaka-player/issues/4870)) ([fadbeb6](https://github.com/shaka-project/shaka-player/commit/fadbeb64f5d31bcacc4872a2dad412bb1b776f73))
36
+ * Treat regions uniquely ([#4841](https://github.com/shaka-project/shaka-player/issues/4841)) ([7952af9](https://github.com/shaka-project/shaka-player/commit/7952af90bf0482a4fcb43520f42cc21bcca79081)), closes [#4839](https://github.com/shaka-project/shaka-player/issues/4839)
37
+ * **ui:** Avoid submitting form if player is inside form ([#4866](https://github.com/shaka-project/shaka-player/issues/4866)) ([c7db48a](https://github.com/shaka-project/shaka-player/commit/c7db48a3070a7bfe69623752ac90a290b75e2b05)), closes [#4861](https://github.com/shaka-project/shaka-player/issues/4861)
38
+
3
39
  ## [4.2.6](https://github.com/shaka-project/shaka-player/compare/v4.2.5...v4.2.6) (2022-12-14)
4
40
 
5
41
 
package/dist/deps.js CHANGED
@@ -75,7 +75,7 @@ goog.addDependency('../../../../lib/media/quality_observer.js', ['shaka.media.Qu
75
75
  goog.addDependency('../../../../lib/media/region_observer.js', ['shaka.media.RegionObserver'], ['shaka.media.IPlayheadObserver', 'shaka.media.RegionTimeline', 'shaka.util.EventManager', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
76
76
  goog.addDependency('../../../../lib/media/region_timeline.js', ['shaka.media.RegionTimeline'], ['shaka.util.FakeEvent', 'shaka.util.FakeEventTarget', 'shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es6'});
77
77
  goog.addDependency('../../../../lib/media/segment_index.js', ['shaka.media.MetaSegmentIndex', 'shaka.media.SegmentIndex', 'shaka.media.SegmentIterator'], ['goog.asserts', 'shaka.media.SegmentReference', 'shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es8'});
78
- goog.addDependency('../../../../lib/media/segment_reference.js', ['shaka.media.InitSegmentReference', 'shaka.media.SegmentReference'], ['goog.asserts', 'shaka.util.ArrayUtils'], {'lang': 'es6'});
78
+ goog.addDependency('../../../../lib/media/segment_reference.js', ['shaka.media.InitSegmentReference', 'shaka.media.SegmentReference'], ['goog.asserts', 'shaka.log', 'shaka.util.ArrayUtils'], {'lang': 'es6'});
79
79
  goog.addDependency('../../../../lib/media/stall_detector.js', ['shaka.media.StallDetector', 'shaka.media.StallDetector.Implementation', 'shaka.media.StallDetector.MediaElementImplementation'], ['shaka.media.TimeRangesUtils', 'shaka.util.FakeEvent', 'shaka.util.IReleasable'], {'lang': 'es6'});
80
80
  goog.addDependency('../../../../lib/media/streaming_engine.js', ['shaka.media.StreamingEngine'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.MediaSourceEngine', 'shaka.media.SegmentIterator', 'shaka.media.SegmentReference', 'shaka.net.Backoff', 'shaka.net.NetworkingEngine', 'shaka.util.DelayedTick', 'shaka.util.Destroyer', 'shaka.util.Error', 'shaka.util.FakeEvent', 'shaka.util.IDestroyable', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4Parser', 'shaka.util.Networking'], {'lang': 'es8'});
81
81
  goog.addDependency('../../../../lib/media/time_ranges_utils.js', ['shaka.media.TimeRangesUtils'], [], {'lang': 'es6'});
@@ -135,14 +135,15 @@ goog.addDependency('../../../../lib/text/lrc_text_parser.js', ['shaka.text.LrcTe
135
135
  goog.addDependency('../../../../lib/text/mp4_ttml_parser.js', ['shaka.text.Mp4TtmlParser'], ['shaka.text.TextEngine', 'shaka.text.TtmlTextParser', 'shaka.util.Error', 'shaka.util.Mp4Parser'], {'lang': 'es6'});
136
136
  goog.addDependency('../../../../lib/text/mp4_vtt_parser.js', ['shaka.text.Mp4VttParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.text.VttTextParser', 'shaka.util.DataViewReader', 'shaka.util.Error', 'shaka.util.Functional', 'shaka.util.Mp4BoxParsers', 'shaka.util.Mp4Parser', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
137
137
  goog.addDependency('../../../../lib/text/sbv_text_parser.js', ['shaka.text.SbvTextParser'], ['goog.asserts', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser'], {'lang': 'es6'});
138
- goog.addDependency('../../../../lib/text/simple_text_displayer.js', ['shaka.text.SimpleTextDisplayer'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue'], {'lang': 'es6'});
138
+ goog.addDependency('../../../../lib/text/simple_text_displayer.js', ['shaka.text.SimpleTextDisplayer'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
139
139
  goog.addDependency('../../../../lib/text/srt_text_parser.js', ['shaka.text.SrtTextParser'], ['goog.asserts', 'shaka.text.TextEngine', 'shaka.text.VttTextParser', 'shaka.util.BufferUtils', 'shaka.util.StringUtils'], {'lang': 'es6'});
140
140
  goog.addDependency('../../../../lib/text/ssa_text_parser.js', ['shaka.text.SsaTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.TextEngine', 'shaka.util.StringUtils'], {'lang': 'es6'});
141
141
  goog.addDependency('../../../../lib/text/text_engine.js', ['shaka.text.TextEngine'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.util.BufferUtils', 'shaka.util.IDestroyable', 'shaka.util.MimeUtils'], {'lang': 'es8'});
142
+ goog.addDependency('../../../../lib/text/text_utils.js', ['shaka.text.Utils'], ['shaka.text.Cue'], {'lang': 'es6'});
142
143
  goog.addDependency('../../../../lib/text/ttml_text_parser.js', ['shaka.text.TtmlTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.ArrayUtils', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.XmlUtils'], {'lang': 'es8'});
143
144
  goog.addDependency('../../../../lib/text/ui_text_displayer.js', ['shaka.text.UITextDisplayer'], ['goog.asserts', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.util.Dom', 'shaka.util.EventManager', 'shaka.util.Timer'], {'lang': 'es6'});
144
145
  goog.addDependency('../../../../lib/text/vtt_text_parser.js', ['shaka.text.VttTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser', 'shaka.util.XmlUtils'], {'lang': 'es6'});
145
- goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue'], {'lang': 'es6'});
146
+ goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
146
147
  goog.addDependency('../../../../lib/util/abortable_operation.js', ['shaka.util.AbortableOperation'], ['shaka.util.Error', 'shaka.util.PublicPromise'], {'lang': 'es6'});
147
148
  goog.addDependency('../../../../lib/util/array_utils.js', ['shaka.util.ArrayUtils'], [], {'lang': 'es6'});
148
149
  goog.addDependency('../../../../lib/util/buffer_utils.js', ['shaka.util.BufferUtils'], [], {'lang': 'es6'});
package/dist/locales.js CHANGED
@@ -721,45 +721,45 @@ shaka.ui.Locales.addTo = function(localization) {
721
721
  * @const
722
722
  */
723
723
  shaka.ui.Locales.Ids = {
724
+ FULL_SCREEN: 'FULL_SCREEN',
724
725
  AUTO_QUALITY: 'AUTO_QUALITY',
725
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
726
- FAST_FORWARD: 'FAST_FORWARD',
726
+ PLAY: 'PLAY',
727
+ LOOP: 'LOOP',
727
728
  CAST: 'CAST',
728
- AIRPLAY: 'AIRPLAY',
729
729
  ON: 'ON',
730
+ AD_TIME: 'AD_TIME',
731
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
732
+ LANGUAGE: 'LANGUAGE',
733
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
734
+ CAPTIONS: 'CAPTIONS',
735
+ PAUSE: 'PAUSE',
730
736
  ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
731
- FULL_SCREEN: 'FULL_SCREEN',
737
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
738
+ STATISTICS: 'STATISTICS',
739
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
740
+ BACK: 'BACK',
741
+ QUALITY: 'QUALITY',
742
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
743
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
744
+ MORE_SETTINGS: 'MORE_SETTINGS',
745
+ SEEK: 'SEEK',
746
+ LIVE: 'LIVE',
747
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
748
+ AD_PROGRESS: 'AD_PROGRESS',
749
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
750
+ AIRPLAY: 'AIRPLAY',
751
+ OFF: 'OFF',
732
752
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
733
- MUTE: 'MUTE',
753
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
754
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
734
755
  AD_DURATION: 'AD_DURATION',
735
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
736
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
737
- LOOP: 'LOOP',
738
756
  REWIND: 'REWIND',
739
- SEEK: 'SEEK',
740
757
  VOLUME: 'VOLUME',
741
- STATISTICS: 'STATISTICS',
742
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
743
- RESOLUTION: 'RESOLUTION',
744
- LIVE: 'LIVE',
745
- CAPTIONS: 'CAPTIONS',
746
- OFF: 'OFF',
747
758
  REPLAY: 'REPLAY',
748
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
749
- LANGUAGE: 'LANGUAGE',
750
- MORE_SETTINGS: 'MORE_SETTINGS',
751
759
  EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
752
- AD_TIME: 'AD_TIME',
753
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
754
- PLAYBACK_RATE: 'PLAYBACK_RATE',
755
- PAUSE: 'PAUSE',
756
- UNMUTE: 'UNMUTE',
757
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
758
- AD_PROGRESS: 'AD_PROGRESS',
759
- BACK: 'BACK',
760
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
760
+ FAST_FORWARD: 'FAST_FORWARD',
761
761
  SKIP_AD: 'SKIP_AD',
762
- NOT_APPLICABLE: 'NOT_APPLICABLE',
763
- QUALITY: 'QUALITY',
764
- PLAY: 'PLAY',
762
+ RESOLUTION: 'RESOLUTION',
763
+ MUTE: 'MUTE',
764
+ UNMUTE: 'UNMUTE',
765
765
  };
@@ -1156,6 +1156,16 @@ declare namespace shaka.media {
1156
1156
  * Mark the reference as unavailable.
1157
1157
  */
1158
1158
  markAsUnavailable ( ) : any ;
1159
+ /**
1160
+ * Offset the segment reference by a fixed amount.
1161
+ * @param offset The amount to add to the segment's start and end times.
1162
+ */
1163
+ offset (offset : number ) : any ;
1164
+ /**
1165
+ * Sync this segment against a particular sync time that will serve as "0" in
1166
+ * the presentation timeline.
1167
+ */
1168
+ syncAgainst (lowestSyncTime : number ) : any ;
1159
1169
  }
1160
1170
  }
1161
1171
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
@@ -1156,6 +1156,16 @@ declare namespace shaka.media {
1156
1156
  * Mark the reference as unavailable.
1157
1157
  */
1158
1158
  markAsUnavailable ( ) : any ;
1159
+ /**
1160
+ * Offset the segment reference by a fixed amount.
1161
+ * @param offset The amount to add to the segment's start and end times.
1162
+ */
1163
+ offset (offset : number ) : any ;
1164
+ /**
1165
+ * Sync this segment against a particular sync time that will serve as "0" in
1166
+ * the presentation timeline.
1167
+ */
1168
+ syncAgainst (lowestSyncTime : number ) : any ;
1159
1169
  }
1160
1170
  }
1161
1171
  // Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.debug.externs.js
@@ -1762,6 +1762,18 @@ shaka.media.SegmentReference = class {
1762
1762
  * Mark the reference as unavailable.
1763
1763
  */
1764
1764
  markAsUnavailable() {}
1765
+ /**
1766
+ * Offset the segment reference by a fixed amount.
1767
+ * @param {number} offset The amount to add to the segment's start and end
1768
+ * times.
1769
+ */
1770
+ offset(offset) {}
1771
+ /**
1772
+ * Sync this segment against a particular sync time that will serve as "0" in
1773
+ * the presentation timeline.
1774
+ * @param {number} lowestSyncTime
1775
+ */
1776
+ syncAgainst(lowestSyncTime) {}
1765
1777
  };
1766
1778
  /**
1767
1779
  * Rather than using booleans to communicate what the state of the reference,