shaka-player 4.6.7 → 4.6.9

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 (46) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +3 -1
  3. package/dist/locales.js +31 -31
  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 +117 -114
  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 +677 -675
  11. package/dist/shaka-player.compiled.map +3 -3
  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 +141 -136
  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 +765 -763
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/docs/tutorials/index.json +1 -0
  21. package/docs/tutorials/text-displayer.md +15 -0
  22. package/lib/ads/client_side_ad.js +4 -2
  23. package/lib/ads/client_side_ad_manager.js +5 -3
  24. package/lib/cast/cast_proxy.js +18 -0
  25. package/lib/cea/cea608_memory.js +1 -1
  26. package/lib/cea/cea_decoder.js +1 -1
  27. package/lib/hls/hls_parser.js +16 -0
  28. package/lib/hls/hls_utils.js +5 -5
  29. package/lib/media/media_source_engine.js +4 -4
  30. package/lib/media/play_rate_controller.js +1 -0
  31. package/lib/media/presentation_timeline.js +11 -0
  32. package/lib/offline/session_deleter.js +0 -8
  33. package/lib/player.js +41 -6
  34. package/lib/polyfill/patchedmediakeys_apple.js +0 -6
  35. package/lib/text/ttml_text_parser.js +5 -0
  36. package/lib/text/vtt_text_parser.js +5 -0
  37. package/lib/util/language_utils.js +7 -8
  38. package/package.json +1 -1
  39. package/test/cea/cea_decoder_unit.js +36 -0
  40. package/test/media/media_source_engine_unit.js +26 -3
  41. package/test/player_load_graph_integration.js +5 -0
  42. package/test/player_unit.js +17 -0
  43. package/test/text/ttml_text_parser_unit.js +16 -16
  44. package/ui/play_button.js +17 -0
  45. package/ui/playback_rate_selection.js +4 -0
  46. package/ui/small_play_button.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.6.9](https://github.com/shaka-project/shaka-player/compare/v4.6.8...v4.6.9) (2024-01-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * auto cancel trickPlay on live as specified ([#6100](https://github.com/shaka-project/shaka-player/issues/6100)) ([60c78f7](https://github.com/shaka-project/shaka-player/commit/60c78f7cab559afbef871aa447290266e52dadc1))
9
+ * Reset to default playback rate on release playback rate controller ([#6089](https://github.com/shaka-project/shaka-player/issues/6089)) ([e9c11cd](https://github.com/shaka-project/shaka-player/commit/e9c11cdb34800226666703b56b4fe5af0e4fcac0))
10
+ * stay paused after codec switch ([#6108](https://github.com/shaka-project/shaka-player/issues/6108)) ([2499947](https://github.com/shaka-project/shaka-player/commit/2499947275d8d10217068d0a1babf244538dfab5))
11
+ * **TTML:** Clip to video when extent is not present ([#6086](https://github.com/shaka-project/shaka-player/issues/6086)) ([17f8bb6](https://github.com/shaka-project/shaka-player/commit/17f8bb6711babaca0fc7437d7f4f7bc7d72050bf))
12
+ * **UI:** Update the playbackrate on loaded event ([#6090](https://github.com/shaka-project/shaka-player/issues/6090)) ([243c113](https://github.com/shaka-project/shaka-player/commit/243c113101299def0b3ba0a525581b707d90aab3))
13
+ * When disconnecting from chromecast, subtitles are turned off ([#6103](https://github.com/shaka-project/shaka-player/issues/6103)) ([f0b506b](https://github.com/shaka-project/shaka-player/commit/f0b506b8d77bc4da62466d8817d0241a079229d8))
14
+
15
+
16
+ ### Performance Improvements
17
+
18
+ * **HLS:** do not filter all tags to get the first tag ([#6088](https://github.com/shaka-project/shaka-player/issues/6088)) ([4704577](https://github.com/shaka-project/shaka-player/commit/4704577add1acb3435a052295cc8b2ec12c8cde7))
19
+
20
+ ## [4.6.8](https://github.com/shaka-project/shaka-player/compare/v4.6.7...v4.6.8) (2024-01-11)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **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))
26
+ * 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))
27
+ * **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))
28
+ * **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))
29
+ * **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))
30
+
31
+
32
+ ### Performance Improvements
33
+
34
+ * Improve performance of addThumbnailsTrack ([#6067](https://github.com/shaka-project/shaka-player/issues/6067)) ([8d29cff](https://github.com/shaka-project/shaka-player/commit/8d29cffa14e907bcfc113421e62b1462b81259c3))
35
+ * **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))
36
+
37
+
38
+ ### Reverts
39
+
40
+ * 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))
41
+
3
42
  ## [4.6.7](https://github.com/shaka-project/shaka-player/compare/v4.6.6...v4.6.7) (2024-01-09)
4
43
 
5
44
 
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',
728
- AD_TIME: 'AD_TIME',
729
- LOOP: 'LOOP',
730
- SEEK: 'SEEK',
731
- REWIND: 'REWIND',
732
- MORE_SETTINGS: 'MORE_SETTINGS',
733
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
727
+ SURROUND: 'SURROUND',
728
+ ON: 'ON',
729
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
734
730
  LIVE: 'LIVE',
735
- VOLUME: 'VOLUME',
736
- UNMUTE: 'UNMUTE',
737
- FULL_SCREEN: 'FULL_SCREEN',
738
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
731
+ SEEK: 'SEEK',
732
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
739
733
  QUALITY: 'QUALITY',
740
- SURROUND: 'SURROUND',
734
+ VOLUME: 'VOLUME',
741
735
  EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
742
- RESOLUTION: 'RESOLUTION',
743
- BACK: 'BACK',
744
- SKIP_AD: 'SKIP_AD',
745
- LANGUAGE: 'LANGUAGE',
736
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
737
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
738
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
746
739
  REPLAY: 'REPLAY',
747
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
748
- ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
749
- NOT_APPLICABLE: 'NOT_APPLICABLE',
750
740
  UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
751
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
741
+ AD_DURATION: 'AD_DURATION',
742
+ PLAY: 'PLAY',
743
+ UNMUTE: 'UNMUTE',
744
+ SKIP_AD: 'SKIP_AD',
745
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
746
+ REWIND: 'REWIND',
747
+ MORE_SETTINGS: 'MORE_SETTINGS',
748
+ ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
749
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
750
+ AIRPLAY: 'AIRPLAY',
752
751
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
752
+ AUTO_QUALITY: 'AUTO_QUALITY',
753
+ CAST: 'CAST',
754
+ LOOP: 'LOOP',
753
755
  STATISTICS: 'STATISTICS',
754
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
755
756
  CAPTIONS: 'CAPTIONS',
756
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
757
- AUTO_QUALITY: 'AUTO_QUALITY',
757
+ RESOLUTION: 'RESOLUTION',
758
+ AD_TIME: 'AD_TIME',
758
759
  FAST_FORWARD: 'FAST_FORWARD',
760
+ BACK: 'BACK',
761
+ OFF: 'OFF',
762
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
763
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
764
+ AD_PROGRESS: 'AD_PROGRESS',
765
+ FULL_SCREEN: 'FULL_SCREEN',
759
766
  PAUSE: 'PAUSE',
760
- AD_DURATION: 'AD_DURATION',
761
- CAST: 'CAST',
767
+ LANGUAGE: 'LANGUAGE',
762
768
  MUTE: 'MUTE',
763
- PLAY: 'PLAY',
764
- AIRPLAY: 'AIRPLAY',
765
- PLAYBACK_RATE: 'PLAYBACK_RATE',
766
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
767
- ON: 'ON',
768
- AD_PROGRESS: 'AD_PROGRESS',
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