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.
- package/.github/config.yml +1 -0
- package/.github/workflows/release-please.yaml +6 -11
- package/CHANGELOG.md +15 -0
- package/build/misspellings.txt +1 -0
- package/dist/controls.css +1 -1
- package/dist/locales.js +32 -32
- package/dist/shaka-player.compiled.d.ts +2 -1
- package/dist/shaka-player.compiled.debug.d.ts +2 -1
- package/dist/shaka-player.compiled.debug.externs.js +1 -0
- package/dist/shaka-player.compiled.debug.js +170 -165
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +1 -0
- package/dist/shaka-player.compiled.js +783 -779
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +2 -1
- package/dist/shaka-player.ui.debug.d.ts +2 -1
- package/dist/shaka-player.ui.debug.externs.js +1 -0
- package/dist/shaka-player.ui.debug.js +182 -177
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +1 -0
- package/dist/shaka-player.ui.js +924 -920
- package/dist/shaka-player.ui.map +3 -3
- package/docs/tutorials/upgrade.md +4 -2
- package/externs/shaka/player.js +11 -0
- package/karma.conf.js +4 -0
- package/lib/dash/dash_parser.js +2 -2
- package/lib/hls/hls_parser.js +20 -11
- package/lib/media/drm_engine.js +16 -0
- package/lib/media/media_source_engine.js +91 -37
- package/lib/media/streaming_engine.js +1 -2
- package/lib/offline/indexeddb/storage_mechanism.js +4 -2
- package/lib/player.js +165 -107
- package/lib/text/vtt_text_parser.js +7 -7
- package/lib/util/config_utils.js +25 -0
- package/lib/util/error.js +7 -0
- package/lib/util/manifest_parser_utils.js +1 -1
- package/lib/util/mime_utils.js +48 -1
- package/lib/util/periods.js +5 -4
- package/lib/util/player_configuration.js +14 -14
- package/lib/util/stream_utils.js +4 -2
- package/package.json +4 -1
- package/test/hls/hls_live_unit.js +22 -0
- package/test/hls/manifest_text_parser_unit.js +19 -0
- package/test/offline/indexeddb_storage_unit.js +1 -1
- package/test/offline/storage_compatibility_unit.js +1 -1
- package/test/player_external.js +7 -1
- package/test/player_integration.js +6 -10
- package/test/player_src_equals_integration.js +81 -83
- package/test/player_unit.js +98 -1
- package/test/test/boot.js +9 -0
- package/test/test/externs/filters.js +4 -0
- package/test/test/util/simple_fakes.js +31 -2
- package/test/text/vtt_text_parser_unit.js +64 -5
- package/test/util/mime_utils_unit.js +54 -0
- package/test/util/periods_unit.js +79 -0
- package/ui/resolution_selection.js +1 -1
- 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,
|