shaka-player 3.3.12 → 3.3.13

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 (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/deps.js +2 -2
  3. package/dist/locales.js +31 -31
  4. package/dist/shaka-player.compiled.d.ts +1 -1
  5. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  6. package/dist/shaka-player.compiled.debug.externs.js +2 -1
  7. package/dist/shaka-player.compiled.debug.js +77 -75
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +2 -1
  10. package/dist/shaka-player.compiled.js +582 -579
  11. package/dist/shaka-player.compiled.map +3 -3
  12. package/dist/shaka-player.ui.d.ts +1 -1
  13. package/dist/shaka-player.ui.debug.d.ts +1 -1
  14. package/dist/shaka-player.ui.debug.externs.js +2 -1
  15. package/dist/shaka-player.ui.debug.js +95 -93
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +2 -1
  18. package/dist/shaka-player.ui.js +676 -673
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/lib/cast/cast_proxy.js +2 -1
  21. package/lib/cast/cast_receiver.js +19 -5
  22. package/lib/cast/cast_sender.js +2 -1
  23. package/lib/cast/cast_utils.js +16 -6
  24. package/lib/hls/hls_parser.js +9 -2
  25. package/lib/media/playhead.js +23 -1
  26. package/lib/media/streaming_engine.js +3 -12
  27. package/lib/player.js +24 -11
  28. package/lib/util/manifest_parser_utils.js +4 -0
  29. package/package.json +1 -1
  30. package/test/cast/cast_receiver_integration.js +97 -16
  31. package/test/cast/cast_receiver_unit.js +17 -12
  32. package/test/cast/cast_utils_unit.js +1 -0
  33. package/test/media/playhead_unit.js +41 -0
  34. package/test/media/streaming_engine_integration.js +13 -0
  35. package/test/media/streaming_engine_unit.js +23 -8
  36. package/test/player_unit.js +87 -0
  37. package/test/test/util/simple_fakes.js +3 -0
  38. package/ui/controls.js +4 -1
  39. package/ui/settings_menu.js +11 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.3.13](https://github.com/shaka-project/shaka-player/compare/v3.3.12...v3.3.13) (2022-11-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Allow overriding special handling of 404s ([#4635](https://github.com/shaka-project/shaka-player/issues/4635)) ([d927cec](https://github.com/shaka-project/shaka-player/commit/d927cec58921928da9a82be8234ac091e3f18322)), closes [#4548](https://github.com/shaka-project/shaka-player/issues/4548)
9
+ * **cast:** Reduce size of Cast update messages ([#4644](https://github.com/shaka-project/shaka-player/issues/4644)) ([5e0e942](https://github.com/shaka-project/shaka-player/commit/5e0e9427caba7204e887d3187564b57bc14e6d3e))
10
+ * Content reload starttime with HLS on iOS ([#4575](https://github.com/shaka-project/shaka-player/issues/4575)) ([7fea5c2](https://github.com/shaka-project/shaka-player/commit/7fea5c26ebf1705114953d6379d1de6e946832b2)), closes [#4244](https://github.com/shaka-project/shaka-player/issues/4244)
11
+ * Fix detection of ac4, dts, and dolby h265 ([#4657](https://github.com/shaka-project/shaka-player/issues/4657)) ([44e4fd7](https://github.com/shaka-project/shaka-player/commit/44e4fd74fd59c3b11ad265bd1eea26678857a26f))
12
+ * focus on first element when back to the settings menu ([#4653](https://github.com/shaka-project/shaka-player/issues/4653)) ([9ab242e](https://github.com/shaka-project/shaka-player/commit/9ab242e39eea87e39c7864ff8aadf5d68ab1236d)), closes [#4652](https://github.com/shaka-project/shaka-player/issues/4652)
13
+ * **HLS:** Fix detection of WebVTT subtitles in HLS by extension ([#4663](https://github.com/shaka-project/shaka-player/issues/4663)) ([6804c6a](https://github.com/shaka-project/shaka-player/commit/6804c6aad240a454e17a3dae1a26f865f79c391d))
14
+ * **HLS:** Infer missing codecs from config ([#4656](https://github.com/shaka-project/shaka-player/issues/4656)) ([b98ae71](https://github.com/shaka-project/shaka-player/commit/b98ae71a46da96a9e30c595a3fed0ddb9718d335))
15
+ * **ui:** Fix exception on screen rotation if fullscreen is not supported ([#4669](https://github.com/shaka-project/shaka-player/issues/4669)) ([b7a841d](https://github.com/shaka-project/shaka-player/commit/b7a841da65c501680947c54f047bc070035e8b4c))
16
+
3
17
  ## [3.3.12](https://github.com/shaka-project/shaka-player/compare/v3.3.11...v3.3.12) (2022-10-29)
4
18
 
5
19
 
package/dist/deps.js CHANGED
@@ -68,7 +68,7 @@ goog.addDependency('../../../../lib/media/manifest_parser.js', ['shaka.media.Man
68
68
  goog.addDependency('../../../../lib/media/media_source_engine.js', ['shaka.media.MediaSourceEngine'], ['goog.asserts', 'shaka.log', 'shaka.media.ContentWorkarounds', 'shaka.media.IClosedCaptionParser', 'shaka.media.TimeRangesUtils', 'shaka.media.Transmuxer', 'shaka.text.TextEngine', 'shaka.util.Destroyer', 'shaka.util.Error', 'shaka.util.EventManager', 'shaka.util.Functional', 'shaka.util.IDestroyable', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Platform', 'shaka.util.PublicPromise'], {'lang': 'es8'});
69
69
  goog.addDependency('../../../../lib/media/mp4_segment_index_parser.js', ['shaka.media.Mp4SegmentIndexParser'], ['goog.asserts', 'shaka.log', 'shaka.media.InitSegmentReference', 'shaka.media.SegmentReference', 'shaka.util.Error', 'shaka.util.Mp4Parser'], {'lang': 'es6'});
70
70
  goog.addDependency('../../../../lib/media/play_rate_controller.js', ['shaka.media.PlayRateController'], ['goog.asserts', 'shaka.log', 'shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es6'});
71
- goog.addDependency('../../../../lib/media/playhead.js', ['shaka.media.MediaSourcePlayhead', 'shaka.media.Playhead', 'shaka.media.SrcEqualsPlayhead'], ['goog.asserts', 'shaka.log', 'shaka.media.GapJumpingController', 'shaka.media.StallDetector', 'shaka.media.StallDetector.MediaElementImplementation', 'shaka.media.TimeRangesUtils', 'shaka.media.VideoWrapper', 'shaka.util.EventManager', 'shaka.util.IReleasable', 'shaka.util.MediaReadyState', 'shaka.util.Timer'], {'lang': 'es6'});
71
+ goog.addDependency('../../../../lib/media/playhead.js', ['shaka.media.MediaSourcePlayhead', 'shaka.media.Playhead', 'shaka.media.SrcEqualsPlayhead'], ['goog.asserts', 'shaka.log', 'shaka.media.GapJumpingController', 'shaka.media.StallDetector', 'shaka.media.StallDetector.MediaElementImplementation', 'shaka.media.TimeRangesUtils', 'shaka.media.VideoWrapper', 'shaka.util.EventManager', 'shaka.util.IReleasable', 'shaka.util.MediaReadyState', 'shaka.util.Timer'], {'lang': 'es8'});
72
72
  goog.addDependency('../../../../lib/media/playhead_observer.js', ['shaka.media.IPlayheadObserver', 'shaka.media.PlayheadObserverManager'], ['shaka.util.IReleasable', 'shaka.util.Timer'], {'lang': 'es6'});
73
73
  goog.addDependency('../../../../lib/media/presentation_timeline.js', ['shaka.media.PresentationTimeline'], ['goog.asserts', 'shaka.log', 'shaka.media.SegmentReference'], {'lang': 'es6'});
74
74
  goog.addDependency('../../../../lib/media/quality_observer.js', ['shaka.media.QualityObserver'], ['shaka.log', 'shaka.media.IPlayheadObserver', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
@@ -219,7 +219,7 @@ goog.addDependency('../../../../ui/range_element.js', ['shaka.ui.RangeElement'],
219
219
  goog.addDependency('../../../../ui/resolution_selection.js', ['shaka.ui.ResolutionSelection'], ['goog.asserts', 'shaka.ui.Controls', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.OverflowMenu', 'shaka.ui.SettingsMenu', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.FakeEvent'], {'lang': 'es6'});
220
220
  goog.addDependency('../../../../ui/rewind_button.js', ['shaka.ui.RewindButton'], ['shaka.ui.Controls', 'shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.util.Dom'], {'lang': 'es6'});
221
221
  goog.addDependency('../../../../ui/seek_bar.js', ['shaka.ui.SeekBar'], ['shaka.ads.AdManager', 'shaka.ui.Constants', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.RangeElement', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.Timer'], {'lang': 'es6'});
222
- goog.addDependency('../../../../ui/settings_menu.js', ['shaka.ui.SettingsMenu'], ['shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.FakeEvent'], {'lang': 'es6'});
222
+ goog.addDependency('../../../../ui/settings_menu.js', ['shaka.ui.SettingsMenu'], ['shaka.ui.Element', 'shaka.ui.Enums', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.FakeEvent', 'shaka.util.Iterables'], {'lang': 'es6'});
223
223
  goog.addDependency('../../../../ui/skip_ad_button.js', ['shaka.ui.SkipAdButton'], ['goog.asserts', 'shaka.ads.AdManager', 'shaka.ui.Element', 'shaka.ui.Locales', 'shaka.ui.Localization', 'shaka.ui.Utils', 'shaka.util.Dom', 'shaka.util.Timer'], {'lang': 'es6'});
224
224
  goog.addDependency('../../../../ui/small_play_button.js', ['shaka.ui.SmallPlayButton'], ['shaka.ui.Controls', 'shaka.ui.Enums', 'shaka.ui.Locales', 'shaka.ui.PlayButton'], {'lang': 'es6'});
225
225
  goog.addDependency('../../../../ui/spacer.js', ['shaka.ui.Spacer'], ['shaka.ui.Controls', 'shaka.ui.Element', 'shaka.util.Dom'], {'lang': 'es6'});
package/dist/locales.js CHANGED
@@ -720,44 +720,44 @@ shaka.ui.Locales.addTo = function(localization) {
720
720
  * @const
721
721
  */
722
722
  shaka.ui.Locales.Ids = {
723
+ AD_PROGRESS: 'AD_PROGRESS',
724
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
725
+ STATISTICS: 'STATISTICS',
726
+ BACK: 'BACK',
727
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
728
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
729
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
723
730
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
724
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
725
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
726
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
727
- AUTO_QUALITY: 'AUTO_QUALITY',
728
- REWIND: 'REWIND',
729
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
730
- CAPTIONS: 'CAPTIONS',
731
+ LOOP: 'LOOP',
731
732
  PLAYBACK_RATE: 'PLAYBACK_RATE',
732
- AD_DURATION: 'AD_DURATION',
733
- PAUSE: 'PAUSE',
734
- VOLUME: 'VOLUME',
735
- BACK: 'BACK',
736
- LIVE: 'LIVE',
733
+ REPLAY: 'REPLAY',
734
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
735
+ REWIND: 'REWIND',
737
736
  UNMUTE: 'UNMUTE',
738
- CAST: 'CAST',
737
+ SKIP_AD: 'SKIP_AD',
738
+ LIVE: 'LIVE',
739
739
  FAST_FORWARD: 'FAST_FORWARD',
740
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
741
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
740
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
741
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
742
742
  MORE_SETTINGS: 'MORE_SETTINGS',
743
- LANGUAGE: 'LANGUAGE',
744
- FULL_SCREEN: 'FULL_SCREEN',
745
- ON: 'ON',
746
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
747
- MUTE: 'MUTE',
743
+ PLAY: 'PLAY',
744
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
745
+ RESOLUTION: 'RESOLUTION',
748
746
  AIRPLAY: 'AIRPLAY',
749
- AD_PROGRESS: 'AD_PROGRESS',
747
+ MUTE: 'MUTE',
748
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
750
749
  AD_TIME: 'AD_TIME',
751
- PLAY: 'PLAY',
752
- STATISTICS: 'STATISTICS',
753
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
750
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
751
+ VOLUME: 'VOLUME',
752
+ FULL_SCREEN: 'FULL_SCREEN',
753
+ AUTO_QUALITY: 'AUTO_QUALITY',
754
754
  SEEK: 'SEEK',
755
- REPLAY: 'REPLAY',
756
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
757
- RESOLUTION: 'RESOLUTION',
758
- SKIP_AD: 'SKIP_AD',
755
+ LANGUAGE: 'LANGUAGE',
756
+ CAST: 'CAST',
757
+ AD_DURATION: 'AD_DURATION',
758
+ ON: 'ON',
759
759
  OFF: 'OFF',
760
- LOOP: 'LOOP',
761
- NOT_APPLICABLE: 'NOT_APPLICABLE',
762
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
760
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
761
+ CAPTIONS: 'CAPTIONS',
762
+ PAUSE: 'PAUSE',
763
763
  };
@@ -301,7 +301,7 @@ declare namespace shaka {
301
301
  * If the player has loaded content, and streaming seen an error, but the
302
302
  * could not resume streaming, this will return <code>false</code>.
303
303
  */
304
- retryStreaming ( ) : boolean ;
304
+ retryStreaming (retryDelaySeconds ? : number ) : boolean ;
305
305
  /**
306
306
  * Get the range of time (in seconds) that seeking is allowed. If the player
307
307
  * has not loaded content, this will return a range from 0 to 0.
@@ -301,7 +301,7 @@ declare namespace shaka {
301
301
  * If the player has loaded content, and streaming seen an error, but the
302
302
  * could not resume streaming, this will return <code>false</code>.
303
303
  */
304
- retryStreaming ( ) : boolean ;
304
+ retryStreaming (retryDelaySeconds ? : number ) : boolean ;
305
305
  /**
306
306
  * Get the range of time (in seconds) that seeking is allowed. If the player
307
307
  * has not loaded content, this will return a range from 0 to 0.
@@ -2796,9 +2796,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
2796
2796
  * <p>
2797
2797
  * If the player has loaded content, and streaming seen an error, but the
2798
2798
  * could not resume streaming, this will return <code>false</code>.
2799
+ * @param {number=} retryDelaySeconds
2799
2800
  * @return {boolean}
2800
2801
  */
2801
- retryStreaming() {}
2802
+ retryStreaming(retryDelaySeconds) {}
2802
2803
  /**
2803
2804
  * Get the manifest that the player has loaded. If the player has not loaded
2804
2805
  * any content, this will return <code>null</code>.