shaka-player 4.7.2 → 4.7.4

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 (36) hide show
  1. package/README.md +3 -1
  2. package/dist/deps.js +1 -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 +314 -311
  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 +1120 -1121
  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 +339 -334
  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 +1207 -1208
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/lib/ads/client_side_ad.js +13 -2
  21. package/lib/ads/client_side_ad_manager.js +8 -5
  22. package/lib/cea/cea608_memory.js +1 -1
  23. package/lib/cea/cea_decoder.js +1 -1
  24. package/lib/dash/dash_parser.js +0 -1
  25. package/lib/hls/hls_parser.js +27 -2
  26. package/lib/media/media_source_engine.js +14 -9
  27. package/lib/media/presentation_timeline.js +11 -0
  28. package/lib/net/networking_utils.js +3 -1
  29. package/lib/offline/session_deleter.js +0 -8
  30. package/lib/player.js +12 -6
  31. package/lib/text/vtt_text_parser.js +5 -0
  32. package/lib/util/periods.js +284 -230
  33. package/package.json +1 -1
  34. package/ui/hidden_seek_button.js +5 -1
  35. package/ui/play_button.js +17 -0
  36. 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/deps.js CHANGED
@@ -205,7 +205,7 @@ goog.addDependency('../../../../lib/util/mutex.js', ['shaka.util.Mutex'], ['shak
205
205
  goog.addDependency('../../../../lib/util/networking.js', ['shaka.util.Networking'], ['shaka.net.NetworkingEngine'], {'lang': 'es6'});
206
206
  goog.addDependency('../../../../lib/util/object_utils.js', ['shaka.util.ObjectUtils'], [], {'lang': 'es6'});
207
207
  goog.addDependency('../../../../lib/util/operation_manager.js', ['shaka.util.OperationManager'], ['shaka.util.ArrayUtils', 'shaka.util.IDestroyable'], {'lang': 'es6'});
208
- goog.addDependency('../../../../lib/util/periods.js', ['shaka.util.PeriodCombiner'], ['goog.asserts', 'shaka.log', 'shaka.media.DrmEngine', 'shaka.media.MetaSegmentIndex', 'shaka.media.SegmentIndex', 'shaka.util.ArrayUtils', 'shaka.util.Error', 'shaka.util.IReleasable', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MapUtils', 'shaka.util.MimeUtils'], {'lang': 'es8'});
208
+ goog.addDependency('../../../../lib/util/periods.js', ['shaka.util.PeriodCombiner'], ['goog.asserts', 'shaka.log', 'shaka.media.DrmEngine', 'shaka.media.MetaSegmentIndex', 'shaka.media.SegmentIndex', 'shaka.util.Error', 'shaka.util.IReleasable', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils'], {'lang': 'es8'});
209
209
  goog.addDependency('../../../../lib/util/platform.js', ['shaka.util.Platform'], ['shaka.util.Timer'], {'lang': 'es6'});
210
210
  goog.addDependency('../../../../lib/util/player_configuration.js', ['shaka.util.PlayerConfiguration'], ['goog.asserts', 'shaka.abr.SimpleAbrManager', 'shaka.config.AutoShowText', 'shaka.config.CodecSwitchingStrategy', 'shaka.log', 'shaka.net.NetworkingEngine', 'shaka.util.ConfigUtils', 'shaka.util.FairPlayUtils', 'shaka.util.LanguageUtils', 'shaka.util.ManifestParserUtils', 'shaka.util.Platform'], {'lang': 'es8'});
211
211
  goog.addDependency('../../../../lib/util/pssh.js', ['shaka.util.Pssh'], ['goog.asserts', 'shaka.log', 'shaka.util.BufferUtils', 'shaka.util.Mp4Parser', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
package/dist/locales.js CHANGED
@@ -725,45 +725,45 @@ shaka.ui.Locales.addTo = function(localization) {
725
725
  */
726
726
  shaka.ui.Locales.Ids = {
727
727
  ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
728
- REPLAY: 'REPLAY',
728
+ STATISTICS: 'STATISTICS',
729
+ QUALITY: 'QUALITY',
730
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
731
+ UNMUTE: 'UNMUTE',
732
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
733
+ AD_DURATION: 'AD_DURATION',
729
734
  AD_PROGRESS: 'AD_PROGRESS',
735
+ FULL_SCREEN: 'FULL_SCREEN',
736
+ MORE_SETTINGS: 'MORE_SETTINGS',
737
+ SURROUND: 'SURROUND',
738
+ AUTO_QUALITY: 'AUTO_QUALITY',
739
+ LIVE: 'LIVE',
740
+ PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
741
+ RESOLUTION: 'RESOLUTION',
742
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
743
+ SEEK: 'SEEK',
730
744
  EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
731
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
732
- AD_DURATION: 'AD_DURATION',
733
- PLAY: 'PLAY',
734
- AIRPLAY: 'AIRPLAY',
745
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
735
746
  MUTE: 'MUTE',
736
747
  PAUSE: 'PAUSE',
737
- VOLUME: 'VOLUME',
738
- PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
748
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
749
+ CAPTIONS: 'CAPTIONS',
750
+ ON: 'ON',
751
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
739
752
  NOT_APPLICABLE: 'NOT_APPLICABLE',
740
- AUTO_QUALITY: 'AUTO_QUALITY',
741
- LOOP: 'LOOP',
742
- QUALITY: 'QUALITY',
743
- LIVE: 'LIVE',
753
+ PLAYBACK_RATE: 'PLAYBACK_RATE',
754
+ AIRPLAY: 'AIRPLAY',
744
755
  OFF: 'OFF',
745
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
746
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
747
- REWIND: 'REWIND',
756
+ PLAY: 'PLAY',
748
757
  CAST: 'CAST',
749
- AD_TIME: 'AD_TIME',
750
- BACK: 'BACK',
751
758
  LANGUAGE: 'LANGUAGE',
752
- SEEK: 'SEEK',
753
- PLAYBACK_RATE: 'PLAYBACK_RATE',
759
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
760
+ REWIND: 'REWIND',
761
+ AD_TIME: 'AD_TIME',
754
762
  SUBTITLE_FORCED: 'SUBTITLE_FORCED',
755
- MORE_SETTINGS: 'MORE_SETTINGS',
756
- STATISTICS: 'STATISTICS',
757
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
758
- SURROUND: 'SURROUND',
759
- CAPTIONS: 'CAPTIONS',
760
- UNMUTE: 'UNMUTE',
761
- RESOLUTION: 'RESOLUTION',
762
- ON: 'ON',
763
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
764
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
765
- FULL_SCREEN: 'FULL_SCREEN',
766
- SKIP_AD: 'SKIP_AD',
763
+ LOOP: 'LOOP',
764
+ BACK: 'BACK',
765
+ REPLAY: 'REPLAY',
766
+ VOLUME: 'VOLUME',
767
767
  FAST_FORWARD: 'FAST_FORWARD',
768
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
768
+ SKIP_AD: 'SKIP_AD',
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