shaka-player 4.0.0 → 4.0.1

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 (57) hide show
  1. package/.github/config.yml +1 -0
  2. package/.github/workflows/release-please.yaml +6 -11
  3. package/CHANGELOG.md +15 -0
  4. package/build/misspellings.txt +1 -0
  5. package/dist/controls.css +1 -1
  6. package/dist/locales.js +32 -32
  7. package/dist/shaka-player.compiled.d.ts +2 -1
  8. package/dist/shaka-player.compiled.debug.d.ts +2 -1
  9. package/dist/shaka-player.compiled.debug.externs.js +1 -0
  10. package/dist/shaka-player.compiled.debug.js +170 -165
  11. package/dist/shaka-player.compiled.debug.map +3 -3
  12. package/dist/shaka-player.compiled.externs.js +1 -0
  13. package/dist/shaka-player.compiled.js +783 -779
  14. package/dist/shaka-player.compiled.map +3 -3
  15. package/dist/shaka-player.ui.d.ts +2 -1
  16. package/dist/shaka-player.ui.debug.d.ts +2 -1
  17. package/dist/shaka-player.ui.debug.externs.js +1 -0
  18. package/dist/shaka-player.ui.debug.js +182 -177
  19. package/dist/shaka-player.ui.debug.map +3 -3
  20. package/dist/shaka-player.ui.externs.js +1 -0
  21. package/dist/shaka-player.ui.js +924 -920
  22. package/dist/shaka-player.ui.map +3 -3
  23. package/docs/tutorials/upgrade.md +4 -2
  24. package/externs/shaka/player.js +11 -0
  25. package/karma.conf.js +4 -0
  26. package/lib/dash/dash_parser.js +2 -2
  27. package/lib/hls/hls_parser.js +20 -11
  28. package/lib/media/drm_engine.js +16 -0
  29. package/lib/media/media_source_engine.js +91 -37
  30. package/lib/media/streaming_engine.js +1 -2
  31. package/lib/offline/indexeddb/storage_mechanism.js +4 -2
  32. package/lib/player.js +165 -107
  33. package/lib/text/vtt_text_parser.js +7 -7
  34. package/lib/util/config_utils.js +25 -0
  35. package/lib/util/error.js +7 -0
  36. package/lib/util/manifest_parser_utils.js +1 -1
  37. package/lib/util/mime_utils.js +48 -1
  38. package/lib/util/periods.js +5 -4
  39. package/lib/util/player_configuration.js +14 -14
  40. package/lib/util/stream_utils.js +4 -2
  41. package/package.json +4 -1
  42. package/test/hls/hls_live_unit.js +22 -0
  43. package/test/hls/manifest_text_parser_unit.js +19 -0
  44. package/test/offline/indexeddb_storage_unit.js +1 -1
  45. package/test/offline/storage_compatibility_unit.js +1 -1
  46. package/test/player_external.js +7 -1
  47. package/test/player_integration.js +6 -10
  48. package/test/player_src_equals_integration.js +81 -83
  49. package/test/player_unit.js +98 -1
  50. package/test/test/boot.js +9 -0
  51. package/test/test/externs/filters.js +4 -0
  52. package/test/test/util/simple_fakes.js +31 -2
  53. package/test/text/vtt_text_parser_unit.js +64 -5
  54. package/test/util/mime_utils_unit.js +54 -0
  55. package/test/util/periods_unit.js +79 -0
  56. package/ui/resolution_selection.js +1 -1
  57. package/docs/tutorials/gsoc-ideas-list.md +0 -3
@@ -2647,6 +2647,7 @@ declare namespace shaka.util.Error {
2647
2647
  CAST_CANCELED_BY_USER = 8004.0 ,
2648
2648
  CAST_CONNECTION_TIMED_OUT = 8005.0 ,
2649
2649
  CAST_RECEIVER_APP_UNAVAILABLE = 8006.0 ,
2650
+ CHAPTERS_TRACK_FAILED = 2015.0 ,
2650
2651
  CONTENT_NOT_LOADED = 7004.0 ,
2651
2652
  CONTENT_TRANSFORMATION_FAILED = 3019.0 ,
2652
2653
  CONTENT_UNSUPPORTED_BY_BROWSER = 4032.0 ,
@@ -4271,7 +4272,7 @@ declare namespace shaka.extern {
4271
4272
  }
4272
4273
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4273
4274
  declare namespace shaka.extern {
4274
- type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , logLicenseExchange : boolean , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
4275
+ type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
4275
4276
  }
4276
4277
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4277
4278
  declare namespace shaka.extern {
@@ -2647,6 +2647,7 @@ declare namespace shaka.util.Error {
2647
2647
  CAST_CANCELED_BY_USER = 8004.0 ,
2648
2648
  CAST_CONNECTION_TIMED_OUT = 8005.0 ,
2649
2649
  CAST_RECEIVER_APP_UNAVAILABLE = 8006.0 ,
2650
+ CHAPTERS_TRACK_FAILED = 2015.0 ,
2650
2651
  CONTENT_NOT_LOADED = 7004.0 ,
2651
2652
  CONTENT_TRANSFORMATION_FAILED = 3019.0 ,
2652
2653
  CONTENT_UNSUPPORTED_BY_BROWSER = 4032.0 ,
@@ -4271,7 +4272,7 @@ declare namespace shaka.extern {
4271
4272
  }
4272
4273
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4273
4274
  declare namespace shaka.extern {
4274
- type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , logLicenseExchange : boolean , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
4275
+ type DrmConfiguration = { advanced : { [ key: string ]: shaka.extern.AdvancedDrmConfiguration } | null , clearKeys : { [ key: string ]: string } , delayLicenseRequestUntilPlayed : boolean , initDataTransform ? : (a : Uint8Array , b : string , c : shaka.extern.DrmInfo | null ) => Uint8Array , logLicenseExchange : boolean , preferredKeySystems : string [] , retryParameters : shaka.extern.RetryParameters , servers : { [ key: string ]: string } , updateExpirationTime : number } ;
4275
4276
  }
4276
4277
  // Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/player.js
4277
4278
  declare namespace shaka.extern {
@@ -211,6 +211,7 @@ shaka.util.Error.Code = {
211
211
  'CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS': 2012,
212
212
  'TEXT_ONLY_WEBVTT_SRC_EQUALS': 2013,
213
213
  'MISSING_TEXT_PLUGIN': 2014,
214
+ 'CHAPTERS_TRACK_FAILED': 2015,
214
215
  'BUFFER_READ_OUT_OF_BOUNDS': 3000,
215
216
  'JS_INTEGER_OVERFLOW': 3001,
216
217
  'EBML_OVERFLOW': 3002,