shaka-player 4.6.7 → 4.6.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 (37) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +3 -1
  3. package/dist/locales.js +28 -28
  4. package/dist/shaka-player.compiled.d.ts +4 -0
  5. package/dist/shaka-player.compiled.debug.d.ts +4 -0
  6. package/dist/shaka-player.compiled.debug.externs.js +5 -0
  7. package/dist/shaka-player.compiled.debug.js +72 -71
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +5 -0
  10. package/dist/shaka-player.compiled.js +690 -690
  11. package/dist/shaka-player.compiled.map +2 -2
  12. package/dist/shaka-player.ui.d.ts +4 -0
  13. package/dist/shaka-player.ui.debug.d.ts +4 -0
  14. package/dist/shaka-player.ui.debug.externs.js +5 -0
  15. package/dist/shaka-player.ui.debug.js +92 -89
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +5 -0
  18. package/dist/shaka-player.ui.js +786 -786
  19. package/dist/shaka-player.ui.map +2 -2
  20. package/lib/ads/client_side_ad.js +4 -2
  21. package/lib/ads/client_side_ad_manager.js +5 -3
  22. package/lib/cea/cea608_memory.js +1 -1
  23. package/lib/cea/cea_decoder.js +1 -1
  24. package/lib/hls/hls_parser.js +16 -0
  25. package/lib/media/media_source_engine.js +3 -3
  26. package/lib/media/presentation_timeline.js +11 -0
  27. package/lib/offline/session_deleter.js +0 -8
  28. package/lib/player.js +12 -6
  29. package/lib/polyfill/patchedmediakeys_apple.js +0 -6
  30. package/lib/text/vtt_text_parser.js +5 -0
  31. package/package.json +1 -1
  32. package/test/cea/cea_decoder_unit.js +36 -0
  33. package/test/media/media_source_engine_unit.js +24 -1
  34. package/test/player_load_graph_integration.js +5 -0
  35. package/test/player_unit.js +17 -0
  36. package/ui/play_button.js +17 -0
  37. package/ui/small_play_button.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.6.8](https://github.com/shaka-project/shaka-player/compare/v4.6.7...v4.6.8) (2024-01-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Ads:** Fix muting/unmuting ads won't affect video and vice versa ([#6073](https://github.com/shaka-project/shaka-player/issues/6073)) ([71f7c57](https://github.com/shaka-project/shaka-player/commit/71f7c57b7fade6f3261c44f2836b9f8adb26edfa))
9
+ * fix handling of multiple CC tracks ([#6076](https://github.com/shaka-project/shaka-player/issues/6076)) ([215b204](https://github.com/shaka-project/shaka-player/commit/215b2046f158d9065a5ffc33a59979af035f38af))
10
+ * **HLS:** getPlayheadTimeAsDate() differs from X-EXT-PROGRAM-DATE-TIME ([#6059](https://github.com/shaka-project/shaka-player/issues/6059)) ([7d41ddc](https://github.com/shaka-project/shaka-player/commit/7d41ddc27510ff310ea6a4760ff5a17b7e8bbc0a))
11
+ * **offline:** Fix server certificate error when trying to delete stored content ([#6080](https://github.com/shaka-project/shaka-player/issues/6080)) ([fd770ad](https://github.com/shaka-project/shaka-player/commit/fd770ad51f55416e9d1e1cc729d1b88795e18d8c))
12
+ * **UI:** Fix replay button when the post-roll is running using CS ([#6072](https://github.com/shaka-project/shaka-player/issues/6072)) ([6c8b700](https://github.com/shaka-project/shaka-player/commit/6c8b700806c845edb4bcd78256f85e8d4bc70485))
13
+
14
+
15
+ ### Performance Improvements
16
+
17
+ * Improve performance of addThumbnailsTrack ([#6067](https://github.com/shaka-project/shaka-player/issues/6067)) ([8d29cff](https://github.com/shaka-project/shaka-player/commit/8d29cffa14e907bcfc113421e62b1462b81259c3))
18
+ * **WebVTT:** Improve parsing time for unstyled payloads ([#6066](https://github.com/shaka-project/shaka-player/issues/6066)) ([5740367](https://github.com/shaka-project/shaka-player/commit/5740367a242b48a71545aa09ecc4271a9d1a8d15))
19
+
20
+
21
+ ### Reverts
22
+
23
+ * Install by default shaka.polyfill.PatchedMediaKeysApple when there is no unprefixed EME support ([#6068](https://github.com/shaka-project/shaka-player/issues/6068)) ([8747403](https://github.com/shaka-project/shaka-player/commit/8747403a9b889211a223474b2f04485d665dd211))
24
+
3
25
  ## [4.6.7](https://github.com/shaka-project/shaka-player/compare/v4.6.6...v4.6.7) (2024-01-09)
4
26
 
5
27
 
package/README.md CHANGED
@@ -302,7 +302,7 @@ Shaka Player supports:
302
302
 
303
303
 
304
304
  ## Content Steering support
305
- Shaka Player supports Content Steering (v1) in DASH.
305
+ Shaka Player supports Content Steering (v1) in DASH and HLS.
306
306
 
307
307
  Content Steering features supported:
308
308
  - TTL, if missing, the default value is 300 seconds.
@@ -316,6 +316,8 @@ Content Steering features **not** supported:
316
316
  ## Documentation & Important Links ##
317
317
 
318
318
  * [Demo](https://shaka-player-demo.appspot.com)([sources](demo/))
319
+ * [Nightly Demo](https://nightly-dot-shaka-player-demo.appspot.com)
320
+ * [Demo index](https://index-dot-shaka-player-demo.appspot.com)
319
321
  * [API documentation](https://shaka-player-demo.appspot.com/docs/api/index.html)
320
322
  * [Tutorials](https://shaka-player-demo.appspot.com/docs/api/tutorial-welcome.html)
321
323
  * [Hosted builds on Google Hosted Libraries](https://developers.google.com/speed/libraries/#shaka-player)
package/dist/locales.js CHANGED
@@ -724,46 +724,46 @@ shaka.ui.Locales.addTo = function(localization) {
724
724
  * @const
725
725
  */
726
726
  shaka.ui.Locales.Ids = {
727
- OFF: 'OFF',
727
+ PAUSE: 'PAUSE',
728
728
  AD_TIME: 'AD_TIME',
729
- LOOP: 'LOOP',
730
- SEEK: 'SEEK',
729
+ FULL_SCREEN: 'FULL_SCREEN',
731
730
  REWIND: 'REWIND',
732
- MORE_SETTINGS: 'MORE_SETTINGS',
731
+ FAST_FORWARD: 'FAST_FORWARD',
733
732
  MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
734
- LIVE: 'LIVE',
735
- VOLUME: 'VOLUME',
736
733
  UNMUTE: 'UNMUTE',
737
- FULL_SCREEN: 'FULL_SCREEN',
734
+ LANGUAGE: 'LANGUAGE',
735
+ SKIP_AD: 'SKIP_AD',
736
+ OFF: 'OFF',
738
737
  EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
739
- QUALITY: 'QUALITY',
738
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
739
+ CAST: 'CAST',
740
740
  SURROUND: 'SURROUND',
741
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
742
- RESOLUTION: 'RESOLUTION',
741
+ AD_PROGRESS: 'AD_PROGRESS',
742
+ MORE_SETTINGS: 'MORE_SETTINGS',
743
+ STATISTICS: 'STATISTICS',
743
744
  BACK: 'BACK',
744
- SKIP_AD: 'SKIP_AD',
745
- LANGUAGE: 'LANGUAGE',
746
- REPLAY: 'REPLAY',
747
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
748
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
745
+ LIVE: 'LIVE',
749
746
  NOT_APPLICABLE: 'NOT_APPLICABLE',
750
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
751
747
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
748
+ PLAY: 'PLAY',
749
+ RESOLUTION: 'RESOLUTION',
750
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
751
+ MUTE: 'MUTE',
752
+ QUALITY: 'QUALITY',
753
+ REPLAY: 'REPLAY',
752
754
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
753
- STATISTICS: 'STATISTICS',
754
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
755
+ LOOP: 'LOOP',
756
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
757
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
755
758
  CAPTIONS: 'CAPTIONS',
756
759
  ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
757
- AUTO_QUALITY: 'AUTO_QUALITY',
758
- FAST_FORWARD: 'FAST_FORWARD',
759
- PAUSE: 'PAUSE',
760
- AD_DURATION: 'AD_DURATION',
761
- CAST: 'CAST',
762
- MUTE: 'MUTE',
763
- PLAY: 'PLAY',
764
- AIRPLAY: 'AIRPLAY',
760
+ SEEK: 'SEEK',
765
761
  PLAYBACK_RATE: 'PLAYBACK_RATE',
766
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
762
+ AUTO_QUALITY: 'AUTO_QUALITY',
767
763
  ON: 'ON',
768
- AD_PROGRESS: 'AD_PROGRESS',
764
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
765
+ AIRPLAY: 'AIRPLAY',
766
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
767
+ VOLUME: 'VOLUME',
768
+ AD_DURATION: 'AD_DURATION',
769
769
  };
@@ -1100,6 +1100,10 @@ declare namespace shaka.media {
1100
1100
  getSegmentAvailabilityStart ( ) : number ;
1101
1101
  isInProgress ( ) : boolean ;
1102
1102
  isLive ( ) : boolean ;
1103
+ /**
1104
+ * Returns if the presentation timeline's start time is locked.
1105
+ */
1106
+ isStartTimeLocked ( ) : boolean ;
1103
1107
  /**
1104
1108
  * Lock the presentation timeline's start time. After this is called, no
1105
1109
  * further adjustments to presentationStartTime_ will be permitted.
@@ -1100,6 +1100,10 @@ declare namespace shaka.media {
1100
1100
  getSegmentAvailabilityStart ( ) : number ;
1101
1101
  isInProgress ( ) : boolean ;
1102
1102
  isLive ( ) : boolean ;
1103
+ /**
1104
+ * Returns if the presentation timeline's start time is locked.
1105
+ */
1106
+ isStartTimeLocked ( ) : boolean ;
1103
1107
  /**
1104
1108
  * Lock the presentation timeline's start time. After this is called, no
1105
1109
  * further adjustments to presentationStartTime_ will be permitted.
@@ -2416,6 +2416,11 @@ shaka.media.PresentationTimeline = class {
2416
2416
  * windows to jump around on updates.
2417
2417
  */
2418
2418
  lockStartTime() {}
2419
+ /**
2420
+ * Returns if the presentation timeline's start time is locked.
2421
+ * @return {boolean}
2422
+ */
2423
+ isStartTimeLocked() {}
2419
2424
  /**
2420
2425
  * Gives PresentationTimeline a Stream's minimum segment start time.
2421
2426
  * @param {number} startTime