shaka-player 3.1.4 → 3.1.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 (43) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/controls.css +2 -2
  3. package/dist/controls.css.map +1 -1
  4. package/dist/locales.js +29 -29
  5. package/dist/shaka-player.compiled.d.ts +14 -0
  6. package/dist/shaka-player.compiled.debug.d.ts +14 -0
  7. package/dist/shaka-player.compiled.debug.externs.js +11 -0
  8. package/dist/shaka-player.compiled.debug.js +170 -168
  9. package/dist/shaka-player.compiled.debug.map +3 -3
  10. package/dist/shaka-player.compiled.externs.js +11 -0
  11. package/dist/shaka-player.compiled.js +650 -650
  12. package/dist/shaka-player.compiled.map +2 -2
  13. package/dist/shaka-player.ui.d.ts +14 -0
  14. package/dist/shaka-player.ui.debug.d.ts +14 -0
  15. package/dist/shaka-player.ui.debug.externs.js +11 -0
  16. package/dist/shaka-player.ui.debug.js +178 -176
  17. package/dist/shaka-player.ui.debug.map +3 -3
  18. package/dist/shaka-player.ui.externs.js +11 -0
  19. package/dist/shaka-player.ui.js +792 -792
  20. package/dist/shaka-player.ui.map +2 -2
  21. package/externs/shaka/text.js +10 -0
  22. package/lib/dash/dash_parser.js +4 -2
  23. package/lib/media/streaming_engine.js +5 -2
  24. package/lib/player.js +1 -1
  25. package/lib/polyfill/media_capabilities.js +30 -15
  26. package/lib/text/cue.js +6 -0
  27. package/lib/text/ttml_text_parser.js +84 -58
  28. package/lib/text/ui_text_displayer.js +17 -11
  29. package/lib/util/stream_utils.js +58 -7
  30. package/lib/util/xml_utils.js +19 -0
  31. package/package.json +2 -2
  32. package/test/dash/dash_parser_manifest_unit.js +33 -1
  33. package/test/media/drm_engine_unit.js +3 -3
  34. package/test/media/streaming_engine_integration.js +2 -1
  35. package/test/media/streaming_engine_unit.js +145 -0
  36. package/test/player_unit.js +5 -5
  37. package/test/test/util/ttml_utils.js +81 -0
  38. package/test/text/mp4_ttml_parser_unit.js +11 -18
  39. package/test/text/ttml_text_parser_unit.js +495 -228
  40. package/test/util/stream_utils_unit.js +35 -29
  41. package/ui/less/buttons.less +0 -4
  42. package/ui/text_selection.js +1 -0
  43. package/externs/media_capabilities.js +0 -16
@@ -1448,6 +1448,12 @@ declare namespace shaka.polyfill {
1448
1448
  * Install the polyfill if needed.
1449
1449
  */
1450
1450
  static install ( ) : any ;
1451
+ /**
1452
+ * A copy of the MediaCapabilities instance, to prevent Safari from
1453
+ * garbage-collecting the polyfilled method on it. We make it public and export
1454
+ * it to ensure that it is not stripped out by the compiler.
1455
+ */
1456
+ static originalMcap : any | null ;
1451
1457
  }
1452
1458
  }
1453
1459
  // Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.externs.js
@@ -1581,6 +1587,7 @@ declare namespace shaka.text {
1581
1587
  fontStyle : any ;
1582
1588
  fontWeight : any ;
1583
1589
  id : any ;
1590
+ isContainer : any ;
1584
1591
  letterSpacing : any ;
1585
1592
  line : any ;
1586
1593
  /**
@@ -4149,6 +4156,13 @@ declare namespace shaka.extern {
4149
4156
  * Id of the cue.
4150
4157
  */
4151
4158
  id : string ;
4159
+ /**
4160
+ * If true, this represents a container element that is "above" the main
4161
+ * cues. For example, the <body> and <div> tags that contain the <p> tags
4162
+ * in a TTML file. This controls the flow of the final cues; any nested cues
4163
+ * within an "isContainer" cue will be laid out as separate lines.
4164
+ */
4165
+ isContainer : boolean ;
4152
4166
  /**
4153
4167
  * Text letter spacing as a CSS letter-spacing value.
4154
4168
  */
@@ -1448,6 +1448,12 @@ declare namespace shaka.polyfill {
1448
1448
  * Install the polyfill if needed.
1449
1449
  */
1450
1450
  static install ( ) : any ;
1451
+ /**
1452
+ * A copy of the MediaCapabilities instance, to prevent Safari from
1453
+ * garbage-collecting the polyfilled method on it. We make it public and export
1454
+ * it to ensure that it is not stripped out by the compiler.
1455
+ */
1456
+ static originalMcap : any | null ;
1451
1457
  }
1452
1458
  }
1453
1459
  // Generated from /usr/local/google/home/joeyparrish/hacking/shaka/clean/dist/shaka-player.ui.debug.externs.js
@@ -1581,6 +1587,7 @@ declare namespace shaka.text {
1581
1587
  fontStyle : any ;
1582
1588
  fontWeight : any ;
1583
1589
  id : any ;
1590
+ isContainer : any ;
1584
1591
  letterSpacing : any ;
1585
1592
  line : any ;
1586
1593
  /**
@@ -4149,6 +4156,13 @@ declare namespace shaka.extern {
4149
4156
  * Id of the cue.
4150
4157
  */
4151
4158
  id : string ;
4159
+ /**
4160
+ * If true, this represents a container element that is "above" the main
4161
+ * cues. For example, the <body> and <div> tags that contain the <p> tags
4162
+ * in a TTML file. This controls the flow of the final cues; any nested cues
4163
+ * within an "isContainer" cue will be laid out as separate lines.
4164
+ */
4165
+ isContainer : boolean ;
4152
4166
  /**
4153
4167
  * Text letter spacing as a CSS letter-spacing value.
4154
4168
  */
@@ -891,6 +891,10 @@ shaka.text.Cue.prototype.id;
891
891
  * @override
892
892
  */
893
893
  shaka.text.Cue.prototype.nestedCues;
894
+ /**
895
+ * @override
896
+ */
897
+ shaka.text.Cue.prototype.isContainer;
894
898
  /**
895
899
  * @override
896
900
  */
@@ -3525,6 +3529,13 @@ shaka.polyfill.MediaCapabilities = class {
3525
3529
  */
3526
3530
  static install() {}
3527
3531
  };
3532
+ /**
3533
+ * A copy of the MediaCapabilities instance, to prevent Safari from
3534
+ * garbage-collecting the polyfilled method on it. We make it public and export
3535
+ * it to ensure that it is not stripped out by the compiler.
3536
+ * @type {MediaCapabilities}
3537
+ */
3538
+ shaka.polyfill.MediaCapabilities.originalMcap;
3528
3539
  /**
3529
3540
  * @summary A polyfill to patch MSE bugs.
3530
3541
  */