shaka-player 4.11.2 → 4.11.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 (83) hide show
  1. package/dist/locales.js +56 -56
  2. package/dist/shaka-player.compiled.d.ts +10 -1
  3. package/dist/shaka-player.compiled.debug.d.ts +10 -1
  4. package/dist/shaka-player.compiled.debug.externs.js +13 -0
  5. package/dist/shaka-player.compiled.debug.js +316 -310
  6. package/dist/shaka-player.compiled.debug.map +3 -3
  7. package/dist/shaka-player.compiled.externs.js +13 -0
  8. package/dist/shaka-player.compiled.js +1014 -1008
  9. package/dist/shaka-player.compiled.map +3 -3
  10. package/dist/shaka-player.ui.d.ts +10 -1
  11. package/dist/shaka-player.ui.debug.d.ts +10 -1
  12. package/dist/shaka-player.ui.debug.externs.js +13 -0
  13. package/dist/shaka-player.ui.debug.js +373 -365
  14. package/dist/shaka-player.ui.debug.map +3 -3
  15. package/dist/shaka-player.ui.externs.js +13 -0
  16. package/dist/shaka-player.ui.js +1266 -1259
  17. package/dist/shaka-player.ui.map +3 -3
  18. package/externs/shaka/player.js +10 -1
  19. package/lib/ads/interstitial_ad_manager.js +27 -5
  20. package/lib/dash/dash_parser.js +10 -7
  21. package/lib/dash/mpd_utils.js +0 -3
  22. package/lib/dash/segment_template.js +11 -2
  23. package/lib/media/gap_jumping_controller.js +4 -2
  24. package/lib/media/presentation_timeline.js +16 -0
  25. package/lib/media/segment_index.js +4 -4
  26. package/lib/media/streaming_engine.js +17 -10
  27. package/lib/net/networking_utils.js +5 -0
  28. package/lib/offline/storage.js +12 -10
  29. package/lib/player.js +13 -4
  30. package/lib/text/ttml_text_parser.js +1 -1
  31. package/lib/util/periods.js +56 -3
  32. package/lib/util/player_configuration.js +5 -0
  33. package/lib/util/tXml.js +17 -9
  34. package/package.json +1 -1
  35. package/ui/controls.js +14 -2
  36. package/ui/locales/README.md +16 -0
  37. package/ui/locales/ar-XB.json +1 -1
  38. package/ui/locales/ar.json +1 -1
  39. package/ui/locales/bg.json +1 -1
  40. package/ui/locales/ca.json +5 -5
  41. package/ui/locales/cs.json +1 -1
  42. package/ui/locales/da.json +1 -1
  43. package/ui/locales/de.json +1 -1
  44. package/ui/locales/el.json +1 -1
  45. package/ui/locales/en-GB.json +1 -1
  46. package/ui/locales/en-XA.json +1 -1
  47. package/ui/locales/es-419.json +4 -4
  48. package/ui/locales/es.json +4 -4
  49. package/ui/locales/fa.json +1 -1
  50. package/ui/locales/fi.json +1 -1
  51. package/ui/locales/fil.json +1 -1
  52. package/ui/locales/fr.json +5 -5
  53. package/ui/locales/hi.json +1 -1
  54. package/ui/locales/hr.json +1 -1
  55. package/ui/locales/hu.json +1 -1
  56. package/ui/locales/id.json +1 -1
  57. package/ui/locales/it.json +1 -1
  58. package/ui/locales/iw.json +1 -1
  59. package/ui/locales/ja.json +1 -1
  60. package/ui/locales/ko.json +1 -1
  61. package/ui/locales/lt.json +1 -1
  62. package/ui/locales/lv.json +1 -1
  63. package/ui/locales/nl.json +1 -1
  64. package/ui/locales/no.json +1 -1
  65. package/ui/locales/pl.json +5 -5
  66. package/ui/locales/pt-BR.json +7 -7
  67. package/ui/locales/pt-PT.json +8 -8
  68. package/ui/locales/ro.json +1 -1
  69. package/ui/locales/ru.json +1 -1
  70. package/ui/locales/sjn-translations.yaml +50 -4
  71. package/ui/locales/sjn.json +8 -1
  72. package/ui/locales/sk.json +1 -1
  73. package/ui/locales/sl.json +1 -1
  74. package/ui/locales/sr.json +1 -1
  75. package/ui/locales/sv.json +1 -1
  76. package/ui/locales/sync-sjn.py +41 -0
  77. package/ui/locales/th.json +1 -1
  78. package/ui/locales/tr.json +1 -1
  79. package/ui/locales/uk.json +1 -1
  80. package/ui/locales/vi.json +1 -1
  81. package/ui/locales/zh-HK.json +1 -1
  82. package/ui/locales/zh-TW.json +1 -1
  83. package/ui/locales/zh.json +1 -1
@@ -2608,6 +2608,13 @@ shaka.media.PresentationTimeline = class {
2608
2608
  * @param {!Array.<!shaka.media.SegmentReference>} references
2609
2609
  */
2610
2610
  notifySegments(references) {}
2611
+ /**
2612
+ * Gives PresentationTimeline an startTime and endTime of the period.
2613
+ * This should be only set for Dash.
2614
+ * @param {number} startTime
2615
+ * @param {number} endTime
2616
+ */
2617
+ notifyPeriodDuration(startTime, endTime) {}
2611
2618
  /**
2612
2619
  * Gets the end time of the last available segment.
2613
2620
  * @return {?number}
@@ -5204,6 +5211,12 @@ shaka.util.PeriodCombiner = class {
5204
5211
  * @return {!Array.<shaka.extern.Stream>}
5205
5212
  */
5206
5213
  getImageStreams() {}
5214
+ /**
5215
+ * Deletes a stream from matchedStreams because it is no longer needed
5216
+ * @param {?shaka.extern.Stream} stream
5217
+ * @param {string} periodId
5218
+ */
5219
+ deleteStream(stream, periodId) {}
5207
5220
  /**
5208
5221
  * @param {!Array.<shaka.extern.Period>} periods
5209
5222
  * @param {boolean} isDynamic