shaka-player 4.9.30 → 4.9.32

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 (50) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTHORS +2 -0
  3. package/CONTRIBUTORS +2 -0
  4. package/dist/controls.css +1 -1
  5. package/dist/controls.css.map +1 -1
  6. package/dist/deps.js +2 -2
  7. package/dist/locales.js +33 -33
  8. package/dist/shaka-player.compiled.d.ts +8 -7
  9. package/dist/shaka-player.compiled.debug.d.ts +8 -7
  10. package/dist/shaka-player.compiled.debug.externs.js +3 -0
  11. package/dist/shaka-player.compiled.debug.js +264 -260
  12. package/dist/shaka-player.compiled.debug.map +3 -3
  13. package/dist/shaka-player.compiled.externs.js +3 -0
  14. package/dist/shaka-player.compiled.js +1214 -1212
  15. package/dist/shaka-player.compiled.map +3 -3
  16. package/dist/shaka-player.ui.d.ts +8 -7
  17. package/dist/shaka-player.ui.debug.d.ts +8 -7
  18. package/dist/shaka-player.ui.debug.externs.js +3 -0
  19. package/dist/shaka-player.ui.debug.js +290 -285
  20. package/dist/shaka-player.ui.debug.map +3 -3
  21. package/dist/shaka-player.ui.externs.js +3 -0
  22. package/dist/shaka-player.ui.js +1417 -1414
  23. package/dist/shaka-player.ui.map +3 -3
  24. package/externs/shaka/abortable.js +36 -36
  25. package/lib/dash/segment_template.js +19 -2
  26. package/lib/hls/hls_parser.js +1 -1
  27. package/lib/media/adaptation_set_criteria.js +8 -1
  28. package/lib/media/content_workarounds.js +2 -1
  29. package/lib/media/drm_engine.js +10 -115
  30. package/lib/media/media_source_engine.js +99 -36
  31. package/lib/media/preload_manager.js +6 -1
  32. package/lib/media/segment_index.js +20 -0
  33. package/lib/media/segment_prefetch.js +7 -0
  34. package/lib/media/segment_reference.js +1 -1
  35. package/lib/media/streaming_engine.js +16 -13
  36. package/lib/mss/mss_parser.js +6 -0
  37. package/lib/net/networking_engine.js +3 -3
  38. package/lib/player.js +16 -2
  39. package/lib/polyfill/media_capabilities.js +48 -9
  40. package/lib/polyfill/mediasource.js +12 -0
  41. package/lib/text/ui_text_displayer.js +8 -0
  42. package/lib/text/vtt_text_parser.js +2 -8
  43. package/lib/util/abortable_operation.js +7 -5
  44. package/lib/util/mp4_generator.js +1 -1
  45. package/lib/util/platform.js +22 -11
  46. package/package.json +2 -2
  47. package/ui/controls.js +2 -2
  48. package/ui/less/containers.less +8 -0
  49. package/ui/remote_button.js +42 -17
  50. package/ui/statistics_button.js +0 -2
@@ -1363,6 +1363,7 @@ declare namespace shaka.media {
1363
1363
  current ( ) : shaka.media.SegmentReference | null ;
1364
1364
  currentPosition ( ) : number ;
1365
1365
  next ( ) : any ;
1366
+ resetToLastIndependent ( ) : any ;
1366
1367
  setReverse (reverse : boolean ) : any ;
1367
1368
  }
1368
1369
  }
@@ -4312,6 +4313,13 @@ declare namespace shaka.extern {
4312
4313
  * whereas aborting only means that further work is stopped.
4313
4314
  */
4314
4315
  interface IAbortableOperation < T > {
4316
+ /**
4317
+ * A Promise which represents the underlying operation. It is resolved when
4318
+ * the operation is complete, and rejected if the operation fails or is
4319
+ * aborted. Aborted operations should be rejected with a shaka.util.Error
4320
+ * object using the error code OPERATION_ABORTED.
4321
+ */
4322
+ promise : Promise < T > ;
4315
4323
  /**
4316
4324
  * Can be called by anyone holding this object to abort the underlying
4317
4325
  * operation. This is not cancelation, and will not necessarily result in
@@ -4321,13 +4329,6 @@ declare namespace shaka.extern {
4321
4329
  */
4322
4330
  abort ( ) : Promise < any > ;
4323
4331
  finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
4324
- /**
4325
- * A Promise which represents the underlying operation. It is resolved when
4326
- * the operation is complete, and rejected if the operation fails or is
4327
- * aborted. Aborted operations should be rejected with a shaka.util.Error
4328
- * object using the error code OPERATION_ABORTED.
4329
- */
4330
- promise : Promise < T > ;
4331
4332
  }
4332
4333
  }
4333
4334
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
@@ -1363,6 +1363,7 @@ declare namespace shaka.media {
1363
1363
  current ( ) : shaka.media.SegmentReference | null ;
1364
1364
  currentPosition ( ) : number ;
1365
1365
  next ( ) : any ;
1366
+ resetToLastIndependent ( ) : any ;
1366
1367
  setReverse (reverse : boolean ) : any ;
1367
1368
  }
1368
1369
  }
@@ -4312,6 +4313,13 @@ declare namespace shaka.extern {
4312
4313
  * whereas aborting only means that further work is stopped.
4313
4314
  */
4314
4315
  interface IAbortableOperation < T > {
4316
+ /**
4317
+ * A Promise which represents the underlying operation. It is resolved when
4318
+ * the operation is complete, and rejected if the operation fails or is
4319
+ * aborted. Aborted operations should be rejected with a shaka.util.Error
4320
+ * object using the error code OPERATION_ABORTED.
4321
+ */
4322
+ promise : Promise < T > ;
4315
4323
  /**
4316
4324
  * Can be called by anyone holding this object to abort the underlying
4317
4325
  * operation. This is not cancelation, and will not necessarily result in
@@ -4321,13 +4329,6 @@ declare namespace shaka.extern {
4321
4329
  */
4322
4330
  abort ( ) : Promise < any > ;
4323
4331
  finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
4324
- /**
4325
- * A Promise which represents the underlying operation. It is resolved when
4326
- * the operation is complete, and rejected if the operation fails or is
4327
- * aborted. Aborted operations should be rejected with a shaka.util.Error
4328
- * object using the error code OPERATION_ABORTED.
4329
- */
4330
- promise : Promise < T > ;
4331
4332
  }
4332
4333
  }
4333
4334
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
@@ -2861,6 +2861,9 @@ shaka.media.SegmentIterator = class {
2861
2861
  * @override
2862
2862
  */
2863
2863
  next() {}
2864
+ /**
2865
+ */
2866
+ resetToLastIndependent() {}
2864
2867
  };
2865
2868
  /**
2866
2869
  * A meta-SegmentIndex composed of multiple other SegmentIndexes.