shaka-player 3.2.14 → 3.2.15

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 (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/deps.js +1 -1
  3. package/dist/locales.js +27 -27
  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 +74 -73
  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 +542 -540
  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 +91 -90
  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 +657 -655
  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 +1 -0
  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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.15](https://github.com/shaka-project/shaka-player/compare/v3.2.14...v3.2.15) (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)) ([43598b4](https://github.com/shaka-project/shaka-player/commit/43598b4670fdc95c7a25d3212f3533e3543e1371)), 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)) ([b36b95d](https://github.com/shaka-project/shaka-player/commit/b36b95db0ebfd718286be1281d51304a62d72159))
10
+ * Content reload starttime with HLS on iOS ([#4575](https://github.com/shaka-project/shaka-player/issues/4575)) ([f51f283](https://github.com/shaka-project/shaka-player/commit/f51f283f43d1f2123ca9962b66f16d553a61eddb)), 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)) ([1adc00a](https://github.com/shaka-project/shaka-player/commit/1adc00aec51b0a37926a9f6fdfcd28f0304f049b))
12
+ * **HLS:** Fix detection of WebVTT subtitles in HLS by extension ([#4663](https://github.com/shaka-project/shaka-player/issues/4663)) ([8440e01](https://github.com/shaka-project/shaka-player/commit/8440e01f756226e8c3c0e5967ef504efefce4b72))
13
+ * **ui:** Fix exception on screen rotation if fullscreen is not supported ([#4669](https://github.com/shaka-project/shaka-player/issues/4669)) ([cbefdb8](https://github.com/shaka-project/shaka-player/commit/cbefdb89078d524b54fbcc298923fbdc9e89ce21))
14
+
3
15
  ## [3.2.14](https://github.com/shaka-project/shaka-player/compare/v3.2.13...v3.2.14) (2022-10-29)
4
16
 
5
17
 
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/region_observer.js', ['shaka.media.RegionObserver'], ['shaka.media.IPlayheadObserver', 'shaka.media.RegionTimeline', 'shaka.util.EventManager', 'shaka.util.FakeEvent', 'shaka.util.FakeEventTarget'], {'lang': 'es6'});
package/dist/locales.js CHANGED
@@ -719,43 +719,43 @@ shaka.ui.Locales.addTo = function(localization) {
719
719
  * @const
720
720
  */
721
721
  shaka.ui.Locales.Ids = {
722
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
723
+ LANGUAGE: 'LANGUAGE',
724
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
725
+ LIVE: 'LIVE',
722
726
  LOOP: 'LOOP',
723
- NOT_APPLICABLE: 'NOT_APPLICABLE',
724
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
725
- MUTE: 'MUTE',
726
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
727
727
  AD_TIME: 'AD_TIME',
728
- BACK: 'BACK',
729
- LANGUAGE: 'LANGUAGE',
730
- PLAY: 'PLAY',
731
- UNMUTE: 'UNMUTE',
732
- OFF: 'OFF',
728
+ MORE_SETTINGS: 'MORE_SETTINGS',
729
+ AIRPLAY: 'AIRPLAY',
730
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
731
+ REWIND: 'REWIND',
732
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
733
+ AD_DURATION: 'AD_DURATION',
734
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
735
+ ON: 'ON',
736
+ VOLUME: 'VOLUME',
737
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
733
738
  SKIP_TO_LIVE: 'SKIP_TO_LIVE',
734
- REPLAY: 'REPLAY',
735
739
  SEEK: 'SEEK',
736
740
  CAST: 'CAST',
737
- AUTO_QUALITY: 'AUTO_QUALITY',
738
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
739
741
  EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
740
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
741
- PLAYBACK_RATE: 'PLAYBACK_RATE',
742
- VOLUME: 'VOLUME',
743
- AD_PROGRESS: 'AD_PROGRESS',
744
742
  PAUSE: 'PAUSE',
745
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
743
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
744
+ BACK: 'BACK',
745
+ OFF: 'OFF',
746
+ AUTO_QUALITY: 'AUTO_QUALITY',
746
747
  SKIP_AD: 'SKIP_AD',
747
- LIVE: 'LIVE',
748
748
  FAST_FORWARD: 'FAST_FORWARD',
749
- AD_DURATION: 'AD_DURATION',
750
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
751
- AIRPLAY: 'AIRPLAY',
749
+ FULL_SCREEN: 'FULL_SCREEN',
750
+ REPLAY: 'REPLAY',
751
+ MUTE: 'MUTE',
752
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
752
753
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
753
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
754
+ PLAY: 'PLAY',
755
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
756
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
757
+ AD_PROGRESS: 'AD_PROGRESS',
754
758
  RESOLUTION: 'RESOLUTION',
755
759
  CAPTIONS: 'CAPTIONS',
756
- MORE_SETTINGS: 'MORE_SETTINGS',
757
- ON: 'ON',
758
- FULL_SCREEN: 'FULL_SCREEN',
759
- REWIND: 'REWIND',
760
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
760
+ UNMUTE: 'UNMUTE',
761
761
  };
@@ -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.
@@ -2567,9 +2567,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
2567
2567
  * <p>
2568
2568
  * If the player has loaded content, and streaming seen an error, but the
2569
2569
  * could not resume streaming, this will return <code>false</code>.
2570
+ * @param {number=} retryDelaySeconds
2570
2571
  * @return {boolean}
2571
2572
  */
2572
- retryStreaming() {}
2573
+ retryStreaming(retryDelaySeconds) {}
2573
2574
  /**
2574
2575
  * Get the manifest that the player has loaded. If the player has not loaded
2575
2576
  * any content, this will return <code>null</code>.