shaka-player 3.3.16 → 3.3.18

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 (68) hide show
  1. package/.github/workflows/build-and-test.yaml +4 -4
  2. package/.github/workflows/demo-version-index.yaml +6 -0
  3. package/.github/workflows/selenium-lab-tests.yaml +72 -11
  4. package/.github/workflows/update-screenshots.yaml +142 -0
  5. package/CHANGELOG.md +38 -0
  6. package/demo/common/asset.js +15 -0
  7. package/demo/common/assets.js +4 -2
  8. package/demo/common/message_ids.js +1 -0
  9. package/demo/custom.js +19 -0
  10. package/demo/locales/en.json +1 -0
  11. package/demo/locales/source.json +4 -0
  12. package/demo/main.js +14 -0
  13. package/dist/demo.compiled.debug.js +146 -144
  14. package/dist/demo.compiled.debug.map +3 -3
  15. package/dist/demo.compiled.js +146 -144
  16. package/dist/demo.compiled.map +3 -3
  17. package/dist/deps.js +1 -1
  18. package/dist/locales.js +28 -28
  19. package/dist/receiver.compiled.debug.js +15 -15
  20. package/dist/receiver.compiled.debug.map +2 -2
  21. package/dist/receiver.compiled.js +15 -15
  22. package/dist/receiver.compiled.map +2 -2
  23. package/dist/shaka-player.compiled.d.ts +12 -0
  24. package/dist/shaka-player.compiled.debug.d.ts +12 -0
  25. package/dist/shaka-player.compiled.debug.externs.js +4 -0
  26. package/dist/shaka-player.compiled.debug.js +105 -100
  27. package/dist/shaka-player.compiled.debug.map +3 -3
  28. package/dist/shaka-player.compiled.externs.js +4 -0
  29. package/dist/shaka-player.compiled.js +296 -292
  30. package/dist/shaka-player.compiled.map +3 -3
  31. package/dist/shaka-player.ui.d.ts +12 -0
  32. package/dist/shaka-player.ui.debug.d.ts +12 -0
  33. package/dist/shaka-player.ui.debug.externs.js +4 -0
  34. package/dist/shaka-player.ui.debug.js +119 -114
  35. package/dist/shaka-player.ui.debug.map +3 -3
  36. package/dist/shaka-player.ui.externs.js +4 -0
  37. package/dist/shaka-player.ui.js +311 -307
  38. package/dist/shaka-player.ui.map +3 -3
  39. package/docs/tutorials/errors.md +94 -0
  40. package/docs/tutorials/index.json +2 -0
  41. package/docs/tutorials/widevine-service-certs.md +45 -0
  42. package/externs/ima.js +9 -0
  43. package/externs/shaka/text.js +7 -0
  44. package/lib/ads/client_side_ad_manager.js +6 -3
  45. package/lib/dash/segment_template.js +17 -5
  46. package/lib/hls/hls_parser.js +3 -1
  47. package/lib/media/transmuxer.js +13 -7
  48. package/lib/media/video_wrapper.js +3 -3
  49. package/lib/offline/indexeddb/storage_mechanism.js +1 -1
  50. package/lib/player.js +3 -1
  51. package/lib/polyfill/media_capabilities.js +3 -8
  52. package/lib/polyfill/mediasource.js +7 -2
  53. package/lib/text/cue.js +6 -0
  54. package/lib/text/ui_text_displayer.js +2 -5
  55. package/lib/text/vtt_text_parser.js +257 -93
  56. package/lib/util/mime_utils.js +1 -1
  57. package/lib/util/platform.js +8 -0
  58. package/lib/util/stream_utils.js +26 -14
  59. package/package.json +1 -1
  60. package/support.html +1 -0
  61. package/test/dash/dash_parser_manifest_unit.js +0 -36
  62. package/test/polyfill/media_capabilities_unit.js +20 -22
  63. package/test/test/util/layout_tests.js +433 -0
  64. package/test/test/util/util.js +0 -120
  65. package/test/{ui → text}/text_displayer_layout_unit.js +59 -235
  66. package/test/text/ui_text_displayer_unit.js +2 -4
  67. package/test/text/vtt_text_parser_unit.js +151 -6
  68. package/test/text/web_vtt_layout_integration.js +525 -0
@@ -1700,6 +1700,7 @@ declare namespace shaka.text {
1700
1700
  startTime : any ;
1701
1701
  textAlign : any ;
1702
1702
  textDecoration : any ;
1703
+ textShadow : any ;
1703
1704
  textStrokeColor : any ;
1704
1705
  textStrokeWidth : any ;
1705
1706
  wrapLine : any ;
@@ -3521,6 +3522,13 @@ declare namespace google.ima.dai.api {
3521
3522
  }
3522
3523
  }
3523
3524
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3525
+ declare namespace google.ima.dai.api.StreamRequest {
3526
+ enum StreamFormat {
3527
+ DASH = 'dash' ,
3528
+ HLS = 'hls' ,
3529
+ }
3530
+ }
3531
+ // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3524
3532
  declare namespace google.ima {
3525
3533
  let settings : google.ima.ImaSdkSettings ;
3526
3534
  }
@@ -4520,6 +4528,10 @@ declare namespace shaka.extern {
4520
4528
  * and line through. Empty array means no decoration.
4521
4529
  */
4522
4530
  textDecoration : shaka.text.Cue.textDecoration [] ;
4531
+ /**
4532
+ * Text shadow color as a CSS text-shadow value.
4533
+ */
4534
+ textShadow : string ;
4523
4535
  /**
4524
4536
  * Text stroke color as a CSS color, e.g. "#FFFFFF" or "white".
4525
4537
  */
@@ -1700,6 +1700,7 @@ declare namespace shaka.text {
1700
1700
  startTime : any ;
1701
1701
  textAlign : any ;
1702
1702
  textDecoration : any ;
1703
+ textShadow : any ;
1703
1704
  textStrokeColor : any ;
1704
1705
  textStrokeWidth : any ;
1705
1706
  wrapLine : any ;
@@ -3521,6 +3522,13 @@ declare namespace google.ima.dai.api {
3521
3522
  }
3522
3523
  }
3523
3524
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3525
+ declare namespace google.ima.dai.api.StreamRequest {
3526
+ enum StreamFormat {
3527
+ DASH = 'dash' ,
3528
+ HLS = 'hls' ,
3529
+ }
3530
+ }
3531
+ // Generated from /home/runner/work/shaka-player/shaka-player/externs/ima.js
3524
3532
  declare namespace google.ima {
3525
3533
  let settings : google.ima.ImaSdkSettings ;
3526
3534
  }
@@ -4520,6 +4528,10 @@ declare namespace shaka.extern {
4520
4528
  * and line through. Empty array means no decoration.
4521
4529
  */
4522
4530
  textDecoration : shaka.text.Cue.textDecoration [] ;
4531
+ /**
4532
+ * Text shadow color as a CSS text-shadow value.
4533
+ */
4534
+ textShadow : string ;
4523
4535
  /**
4524
4536
  * Text stroke color as a CSS color, e.g. "#FFFFFF" or "white".
4525
4537
  */
@@ -652,6 +652,10 @@ shaka.text.Cue.prototype.backgroundImage;
652
652
  * @override
653
653
  */
654
654
  shaka.text.Cue.prototype.border;
655
+ /**
656
+ * @override
657
+ */
658
+ shaka.text.Cue.prototype.textShadow;
655
659
  /**
656
660
  * @override
657
661
  */