shaka-player 4.12.0 → 4.12.2
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/.eslintrc.js +1 -0
- package/AUTHORS +1 -0
- package/CONTRIBUTORS +1 -0
- package/dist/deps.js +1 -1
- package/dist/locales.js +34 -34
- package/dist/shaka-player.compiled.d.ts +8 -8
- package/dist/shaka-player.compiled.debug.d.ts +8 -8
- package/dist/shaka-player.compiled.debug.externs.js +1 -1
- package/dist/shaka-player.compiled.debug.js +160 -157
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +1 -1
- package/dist/shaka-player.compiled.js +1258 -1257
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +8 -8
- package/dist/shaka-player.ui.debug.d.ts +8 -8
- package/dist/shaka-player.ui.debug.externs.js +1 -1
- package/dist/shaka-player.ui.debug.js +153 -150
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +1 -1
- package/dist/shaka-player.ui.js +1488 -1487
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/abortable.js +36 -36
- package/lib/ads/interstitial_ad_manager.js +6 -3
- package/lib/dash/dash_parser.js +11 -2
- package/lib/hls/hls_parser.js +1 -1
- package/lib/media/drm_engine.js +2 -0
- package/lib/media/media_source_engine.js +61 -3
- package/lib/media/preload_manager.js +6 -1
- package/lib/media/segment_reference.js +1 -1
- package/lib/media/streaming_engine.js +9 -11
- package/lib/net/networking_engine.js +3 -3
- package/lib/player.js +12 -2
- package/lib/polyfill/media_capabilities.js +46 -8
- package/lib/text/ui_text_displayer.js +8 -0
- package/lib/text/vtt_text_parser.js +2 -8
- package/lib/util/abortable_operation.js +8 -6
- package/lib/util/error.js +1 -1
- package/lib/util/platform.js +18 -7
- package/package.json +2 -2
- package/ui/chapter_selection.js +6 -2
- package/ui/playback_rate_selection.js +6 -2
|
@@ -4002,7 +4002,7 @@ declare namespace shaka.util.Error {
|
|
|
4002
4002
|
UNEXPECTED_TEST_REQUEST = 1009.0 ,
|
|
4003
4003
|
UNSUPPORTED_EXTERNAL_THUMBNAILS_URI = 2017.0 ,
|
|
4004
4004
|
UNSUPPORTED_SCHEME = 1000.0 ,
|
|
4005
|
-
VAST_INVALID_XML =
|
|
4005
|
+
VAST_INVALID_XML = 10007.0 ,
|
|
4006
4006
|
VIDEO_ERROR = 3016.0 ,
|
|
4007
4007
|
WEBM_CUES_ELEMENT_MISSING = 3007.0 ,
|
|
4008
4008
|
WEBM_CUE_TIME_ELEMENT_MISSING = 3013.0 ,
|
|
@@ -4644,6 +4644,13 @@ declare namespace shaka.extern {
|
|
|
4644
4644
|
* whereas aborting only means that further work is stopped.
|
|
4645
4645
|
*/
|
|
4646
4646
|
interface IAbortableOperation < T > {
|
|
4647
|
+
/**
|
|
4648
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
4649
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
4650
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4651
|
+
* object using the error code OPERATION_ABORTED.
|
|
4652
|
+
*/
|
|
4653
|
+
promise : Promise < T > ;
|
|
4647
4654
|
/**
|
|
4648
4655
|
* Can be called by anyone holding this object to abort the underlying
|
|
4649
4656
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -4653,13 +4660,6 @@ declare namespace shaka.extern {
|
|
|
4653
4660
|
*/
|
|
4654
4661
|
abort ( ) : Promise < any > ;
|
|
4655
4662
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
4656
|
-
/**
|
|
4657
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
4658
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
4659
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4660
|
-
* object using the error code OPERATION_ABORTED.
|
|
4661
|
-
*/
|
|
4662
|
-
promise : Promise < T > ;
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
4665
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -4002,7 +4002,7 @@ declare namespace shaka.util.Error {
|
|
|
4002
4002
|
UNEXPECTED_TEST_REQUEST = 1009.0 ,
|
|
4003
4003
|
UNSUPPORTED_EXTERNAL_THUMBNAILS_URI = 2017.0 ,
|
|
4004
4004
|
UNSUPPORTED_SCHEME = 1000.0 ,
|
|
4005
|
-
VAST_INVALID_XML =
|
|
4005
|
+
VAST_INVALID_XML = 10007.0 ,
|
|
4006
4006
|
VIDEO_ERROR = 3016.0 ,
|
|
4007
4007
|
WEBM_CUES_ELEMENT_MISSING = 3007.0 ,
|
|
4008
4008
|
WEBM_CUE_TIME_ELEMENT_MISSING = 3013.0 ,
|
|
@@ -4644,6 +4644,13 @@ declare namespace shaka.extern {
|
|
|
4644
4644
|
* whereas aborting only means that further work is stopped.
|
|
4645
4645
|
*/
|
|
4646
4646
|
interface IAbortableOperation < T > {
|
|
4647
|
+
/**
|
|
4648
|
+
* A Promise which represents the underlying operation. It is resolved when
|
|
4649
|
+
* the operation is complete, and rejected if the operation fails or is
|
|
4650
|
+
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4651
|
+
* object using the error code OPERATION_ABORTED.
|
|
4652
|
+
*/
|
|
4653
|
+
promise : Promise < T > ;
|
|
4647
4654
|
/**
|
|
4648
4655
|
* Can be called by anyone holding this object to abort the underlying
|
|
4649
4656
|
* operation. This is not cancelation, and will not necessarily result in
|
|
@@ -4653,13 +4660,6 @@ declare namespace shaka.extern {
|
|
|
4653
4660
|
*/
|
|
4654
4661
|
abort ( ) : Promise < any > ;
|
|
4655
4662
|
finally (onFinal : (a : boolean ) => any ) : shaka.extern.IAbortableOperation < T > ;
|
|
4656
|
-
/**
|
|
4657
|
-
* A Promise which represents the underlying operation. It is resolved when
|
|
4658
|
-
* the operation is complete, and rejected if the operation fails or is
|
|
4659
|
-
* aborted. Aborted operations should be rejected with a shaka.util.Error
|
|
4660
|
-
* object using the error code OPERATION_ABORTED.
|
|
4661
|
-
*/
|
|
4662
|
-
promise : Promise < T > ;
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
4665
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -400,7 +400,7 @@ shaka.util.Error.Code = {
|
|
|
400
400
|
'CURRENT_DAI_REQUEST_NOT_FINISHED': 10004,
|
|
401
401
|
'MT_AD_MANAGER_NOT_INITIALIZED': 10005,
|
|
402
402
|
'INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED': 10006,
|
|
403
|
-
'VAST_INVALID_XML':
|
|
403
|
+
'VAST_INVALID_XML': 10007
|
|
404
404
|
};
|
|
405
405
|
/**
|
|
406
406
|
* A timer allows a single function to be executed at a later time or at
|