shaka-player 4.7.3 → 4.7.5

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/README.md +3 -1
  2. package/dist/locales.js +32 -32
  3. package/dist/shaka-player.compiled.d.ts +4 -0
  4. package/dist/shaka-player.compiled.debug.d.ts +4 -0
  5. package/dist/shaka-player.compiled.debug.externs.js +5 -0
  6. package/dist/shaka-player.compiled.debug.js +121 -119
  7. package/dist/shaka-player.compiled.debug.map +3 -3
  8. package/dist/shaka-player.compiled.externs.js +5 -0
  9. package/dist/shaka-player.compiled.js +689 -687
  10. package/dist/shaka-player.compiled.map +3 -3
  11. package/dist/shaka-player.ui.d.ts +4 -0
  12. package/dist/shaka-player.ui.debug.d.ts +4 -0
  13. package/dist/shaka-player.ui.debug.externs.js +5 -0
  14. package/dist/shaka-player.ui.debug.js +145 -142
  15. package/dist/shaka-player.ui.debug.map +3 -3
  16. package/dist/shaka-player.ui.externs.js +5 -0
  17. package/dist/shaka-player.ui.js +831 -829
  18. package/dist/shaka-player.ui.map +3 -3
  19. package/lib/ads/client_side_ad.js +4 -2
  20. package/lib/ads/client_side_ad_manager.js +5 -3
  21. package/lib/cast/cast_proxy.js +18 -0
  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/hls/hls_utils.js +5 -5
  26. package/lib/media/media_source_engine.js +4 -4
  27. package/lib/media/play_rate_controller.js +1 -0
  28. package/lib/media/presentation_timeline.js +11 -0
  29. package/lib/offline/session_deleter.js +0 -8
  30. package/lib/player.js +41 -6
  31. package/lib/polyfill/patchedmediakeys_apple.js +0 -6
  32. package/lib/text/ttml_text_parser.js +5 -0
  33. package/lib/text/vtt_text_parser.js +5 -0
  34. package/lib/util/language_utils.js +7 -8
  35. package/lib/util/periods.js +3 -1
  36. package/package.json +1 -1
  37. package/ui/play_button.js +17 -0
  38. package/ui/playback_rate_selection.js +4 -0
  39. package/ui/small_play_button.js +2 -2
package/README.md CHANGED
@@ -303,7 +303,7 @@ Shaka Player supports:
303
303
 
304
304
 
305
305
  ## Content Steering support
306
- Shaka Player supports Content Steering (v1) in DASH.
306
+ Shaka Player supports Content Steering (v1) in DASH and HLS.
307
307
 
308
308
  Content Steering features supported:
309
309
  - TTL, if missing, the default value is 300 seconds.
@@ -317,6 +317,8 @@ Content Steering features **not** supported:
317
317
  ## Documentation & Important Links ##
318
318
 
319
319
  * [Demo](https://shaka-player-demo.appspot.com)([sources](demo/))
320
+ * [Nightly Demo](https://nightly-dot-shaka-player-demo.appspot.com)
321
+ * [Demo index](https://index-dot-shaka-player-demo.appspot.com)
320
322
  * [API documentation](https://shaka-player-demo.appspot.com/docs/api/index.html)
321
323
  * [Tutorials](https://shaka-player-demo.appspot.com/docs/api/tutorial-welcome.html)
322
324
  * [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
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
728
- CAST: 'CAST',
729
- LOOP: 'LOOP',
727
+ MUTE: 'MUTE',
728
+ AUTO_QUALITY: 'AUTO_QUALITY',
729
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
730
+ QUALITY: 'QUALITY',
730
731
  AD_TIME: 'AD_TIME',
731
- PLAY: 'PLAY',
732
+ VOLUME: 'VOLUME',
732
733
  SEEK: 'SEEK',
734
+ BACK: 'BACK',
735
+ PAUSE: 'PAUSE',
736
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
737
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
738
+ LOOP: 'LOOP',
739
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
740
+ MORE_SETTINGS: 'MORE_SETTINGS',
741
+ SURROUND: 'SURROUND',
742
+ PLAY: 'PLAY',
733
743
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
734
- FULL_SCREEN: 'FULL_SCREEN',
735
- FAST_FORWARD: 'FAST_FORWARD',
736
- UNMUTE: 'UNMUTE',
744
+ REPLAY: 'REPLAY',
745
+ AD_DURATION: 'AD_DURATION',
746
+ AD_PROGRESS: 'AD_PROGRESS',
737
747
  REWIND: 'REWIND',
738
- AUTO_QUALITY: 'AUTO_QUALITY',
739
- SURROUND: 'SURROUND',
740
- PLAYBACK_RATE: 'PLAYBACK_RATE',
741
- ON: 'ON',
742
- MORE_SETTINGS: 'MORE_SETTINGS',
743
748
  OFF: 'OFF',
744
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
745
- MUTE: 'MUTE',
746
- SKIP_AD: 'SKIP_AD',
747
- AD_DURATION: 'AD_DURATION',
748
- AIRPLAY: 'AIRPLAY',
749
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
749
750
  LANGUAGE: 'LANGUAGE',
750
- CAPTIONS: 'CAPTIONS',
751
751
  RESOLUTION: 'RESOLUTION',
752
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
753
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
754
- REPLAY: 'REPLAY',
755
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
756
- PAUSE: 'PAUSE',
757
- VOLUME: 'VOLUME',
758
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
759
- NOT_APPLICABLE: 'NOT_APPLICABLE',
760
- STATISTICS: 'STATISTICS',
761
752
  LIVE: 'LIVE',
762
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
763
- QUALITY: 'QUALITY',
753
+ FAST_FORWARD: 'FAST_FORWARD',
754
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
755
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
756
+ CAPTIONS: 'CAPTIONS',
757
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
758
+ FULL_SCREEN: 'FULL_SCREEN',
759
+ SKIP_AD: 'SKIP_AD',
760
+ AIRPLAY: 'AIRPLAY',
761
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
764
762
  ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
763
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
764
+ UNMUTE: 'UNMUTE',
765
+ STATISTICS: 'STATISTICS',
765
766
  EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
766
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
767
- AD_PROGRESS: 'AD_PROGRESS',
768
- BACK: 'BACK',
767
+ ON: 'ON',
768
+ CAST: 'CAST',
769
769
  };
@@ -1101,6 +1101,10 @@ declare namespace shaka.media {
1101
1101
  getSegmentAvailabilityStart ( ) : number ;
1102
1102
  isInProgress ( ) : boolean ;
1103
1103
  isLive ( ) : boolean ;
1104
+ /**
1105
+ * Returns if the presentation timeline's start time is locked.
1106
+ */
1107
+ isStartTimeLocked ( ) : boolean ;
1104
1108
  /**
1105
1109
  * Lock the presentation timeline's start time. After this is called, no
1106
1110
  * further adjustments to presentationStartTime_ will be permitted.
@@ -1101,6 +1101,10 @@ declare namespace shaka.media {
1101
1101
  getSegmentAvailabilityStart ( ) : number ;
1102
1102
  isInProgress ( ) : boolean ;
1103
1103
  isLive ( ) : boolean ;
1104
+ /**
1105
+ * Returns if the presentation timeline's start time is locked.
1106
+ */
1107
+ isStartTimeLocked ( ) : boolean ;
1104
1108
  /**
1105
1109
  * Lock the presentation timeline's start time. After this is called, no
1106
1110
  * further adjustments to presentationStartTime_ will be permitted.
@@ -2420,6 +2420,11 @@ shaka.media.PresentationTimeline = class {
2420
2420
  * windows to jump around on updates.
2421
2421
  */
2422
2422
  lockStartTime() {}
2423
+ /**
2424
+ * Returns if the presentation timeline's start time is locked.
2425
+ * @return {boolean}
2426
+ */
2427
+ isStartTimeLocked() {}
2423
2428
  /**
2424
2429
  * Gives PresentationTimeline a Stream's minimum segment start time.
2425
2430
  * @param {number} startTime