shaka-player 4.7.5 → 4.7.7
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/AUTHORS +1 -0
- package/CONTRIBUTORS +1 -0
- package/dist/locales.js +32 -32
- package/dist/shaka-player.compiled.d.ts +8 -1
- package/dist/shaka-player.compiled.debug.d.ts +8 -1
- package/dist/shaka-player.compiled.debug.externs.js +6 -1
- package/dist/shaka-player.compiled.debug.js +52 -49
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +6 -1
- package/dist/shaka-player.compiled.js +1078 -1076
- package/dist/shaka-player.compiled.map +3 -3
- package/dist/shaka-player.ui.d.ts +20 -2
- package/dist/shaka-player.ui.debug.d.ts +20 -2
- package/dist/shaka-player.ui.debug.externs.js +7 -1
- package/dist/shaka-player.ui.debug.js +59 -58
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +7 -1
- package/dist/shaka-player.ui.js +1201 -1199
- package/dist/shaka-player.ui.map +3 -3
- package/externs/shaka/abr_manager.js +9 -0
- package/lib/abr/simple_abr_manager.js +11 -0
- package/lib/media/drm_engine.js +9 -0
- package/lib/media/segment_prefetch.js +4 -0
- package/lib/media/streaming_engine.js +6 -8
- package/lib/net/networking_engine.js +1 -1
- package/lib/offline/storage.js +4 -0
- package/lib/player.js +31 -7
- package/lib/polyfill/media_capabilities.js +9 -2
- package/lib/util/periods.js +4 -0
- package/lib/util/platform.js +18 -0
- package/lib/util/stream_utils.js +14 -0
- package/lib/util/ts_parser.js +7 -4
- package/package.json +1 -1
- package/ui/controls.js +3 -0
- package/ui/externs/ui.js +24 -0
- package/ui/pip_button.js +5 -21
- package/ui/play_button.js +3 -0
|
@@ -469,6 +469,7 @@ declare namespace shaka.abr {
|
|
|
469
469
|
setMediaElement (mediaElement : any ) : any ;
|
|
470
470
|
setVariants (variants : any ) : any ;
|
|
471
471
|
stop ( ) : any ;
|
|
472
|
+
trySuggestStreams ( ) : any ;
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
475
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
|
|
@@ -3002,9 +3003,12 @@ declare namespace shaka.ui {
|
|
|
3002
3003
|
}
|
|
3003
3004
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
|
|
3004
3005
|
declare namespace shaka.ui {
|
|
3005
|
-
class PlayButton extends shaka.ui.Element {
|
|
3006
|
+
class PlayButton extends shaka.ui.Element implements shaka.extern.IUIPlayButton {
|
|
3006
3007
|
private noStructuralTyping_shaka_ui_PlayButton : any;
|
|
3007
3008
|
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
|
|
3009
|
+
button : HTMLButtonElement ;
|
|
3010
|
+
isEnded ( ) : boolean ;
|
|
3011
|
+
isPaused ( ) : boolean ;
|
|
3008
3012
|
}
|
|
3009
3013
|
}
|
|
3010
3014
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.externs.js
|
|
@@ -4102,7 +4106,7 @@ declare namespace shaka.util {
|
|
|
4102
4106
|
* The code is based on hls.js
|
|
4103
4107
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
4104
4108
|
*/
|
|
4105
|
-
parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
|
|
4109
|
+
parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
|
|
4106
4110
|
static Timescale : number ;
|
|
4107
4111
|
/**
|
|
4108
4112
|
* Check if the passed data corresponds to an MPEG2-TS
|
|
@@ -4852,6 +4856,12 @@ declare namespace shaka.extern {
|
|
|
4852
4856
|
* This will only be called after a call to init.
|
|
4853
4857
|
*/
|
|
4854
4858
|
stop ( ) : any ;
|
|
4859
|
+
/**
|
|
4860
|
+
* Notifies the ABR that it is a time to suggest new streams. This is used by
|
|
4861
|
+
* the Player when it finishes adding the last partial segment of a fast
|
|
4862
|
+
* switching stream.
|
|
4863
|
+
*/
|
|
4864
|
+
trySuggestStreams ( ) : any ;
|
|
4855
4865
|
}
|
|
4856
4866
|
}
|
|
4857
4867
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -5808,6 +5818,14 @@ declare namespace shaka.extern.IUIElement {
|
|
|
5808
5818
|
}
|
|
5809
5819
|
}
|
|
5810
5820
|
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5821
|
+
declare namespace shaka.extern {
|
|
5822
|
+
interface IUIPlayButton {
|
|
5823
|
+
button : HTMLButtonElement ;
|
|
5824
|
+
isEnded ( ) : boolean ;
|
|
5825
|
+
isPaused ( ) : boolean ;
|
|
5826
|
+
}
|
|
5827
|
+
}
|
|
5828
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5811
5829
|
declare namespace shaka.extern {
|
|
5812
5830
|
/**
|
|
5813
5831
|
* Interface for UI range elements. UI range elements should inherit from the
|
|
@@ -469,6 +469,7 @@ declare namespace shaka.abr {
|
|
|
469
469
|
setMediaElement (mediaElement : any ) : any ;
|
|
470
470
|
setVariants (variants : any ) : any ;
|
|
471
471
|
stop ( ) : any ;
|
|
472
|
+
trySuggestStreams ( ) : any ;
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
475
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
@@ -3002,9 +3003,12 @@ declare namespace shaka.ui {
|
|
|
3002
3003
|
}
|
|
3003
3004
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
3004
3005
|
declare namespace shaka.ui {
|
|
3005
|
-
class PlayButton extends shaka.ui.Element {
|
|
3006
|
+
class PlayButton extends shaka.ui.Element implements shaka.extern.IUIPlayButton {
|
|
3006
3007
|
private noStructuralTyping_shaka_ui_PlayButton : any;
|
|
3007
3008
|
constructor (parent : HTMLElement , controls : shaka.ui.Controls ) ;
|
|
3009
|
+
button : HTMLButtonElement ;
|
|
3010
|
+
isEnded ( ) : boolean ;
|
|
3011
|
+
isPaused ( ) : boolean ;
|
|
3008
3012
|
}
|
|
3009
3013
|
}
|
|
3010
3014
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.ui.debug.externs.js
|
|
@@ -4102,7 +4106,7 @@ declare namespace shaka.util {
|
|
|
4102
4106
|
* The code is based on hls.js
|
|
4103
4107
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
4104
4108
|
*/
|
|
4105
|
-
parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null ) : shaka.extern.VideoNalu [] ;
|
|
4109
|
+
parseNalus (pes : shaka.extern.MPEG_PES , lastNalu ? : shaka.extern.VideoNalu | null , lastState ? : number | null ) : shaka.extern.VideoNalu [] ;
|
|
4106
4110
|
static Timescale : number ;
|
|
4107
4111
|
/**
|
|
4108
4112
|
* Check if the passed data corresponds to an MPEG2-TS
|
|
@@ -4852,6 +4856,12 @@ declare namespace shaka.extern {
|
|
|
4852
4856
|
* This will only be called after a call to init.
|
|
4853
4857
|
*/
|
|
4854
4858
|
stop ( ) : any ;
|
|
4859
|
+
/**
|
|
4860
|
+
* Notifies the ABR that it is a time to suggest new streams. This is used by
|
|
4861
|
+
* the Player when it finishes adding the last partial segment of a fast
|
|
4862
|
+
* switching stream.
|
|
4863
|
+
*/
|
|
4864
|
+
trySuggestStreams ( ) : any ;
|
|
4855
4865
|
}
|
|
4856
4866
|
}
|
|
4857
4867
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/abr_manager.js
|
|
@@ -5808,6 +5818,14 @@ declare namespace shaka.extern.IUIElement {
|
|
|
5808
5818
|
}
|
|
5809
5819
|
}
|
|
5810
5820
|
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5821
|
+
declare namespace shaka.extern {
|
|
5822
|
+
interface IUIPlayButton {
|
|
5823
|
+
button : HTMLButtonElement ;
|
|
5824
|
+
isEnded ( ) : boolean ;
|
|
5825
|
+
isPaused ( ) : boolean ;
|
|
5826
|
+
}
|
|
5827
|
+
}
|
|
5828
|
+
// Generated from /home/runner/work/shaka-player/shaka-player/ui/externs/ui.js
|
|
5811
5829
|
declare namespace shaka.extern {
|
|
5812
5830
|
/**
|
|
5813
5831
|
* Interface for UI range elements. UI range elements should inherit from the
|
|
@@ -1339,6 +1339,10 @@ shaka.abr.SimpleAbrManager = class {
|
|
|
1339
1339
|
* @override
|
|
1340
1340
|
*/
|
|
1341
1341
|
segmentDownloaded(deltaTimeMs, numBytes, allowSwitch) {}
|
|
1342
|
+
/**
|
|
1343
|
+
* @override
|
|
1344
|
+
*/
|
|
1345
|
+
trySuggestStreams() {}
|
|
1342
1346
|
/**
|
|
1343
1347
|
* @override
|
|
1344
1348
|
*/
|
|
@@ -2350,9 +2354,10 @@ shaka.util.TsParser = class {
|
|
|
2350
2354
|
* Credit to https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.ts
|
|
2351
2355
|
* @param {shaka.extern.MPEG_PES} pes
|
|
2352
2356
|
* @param {?shaka.extern.VideoNalu=} lastNalu
|
|
2357
|
+
* @param {?number=} lastState
|
|
2353
2358
|
* @return {!Array.<shaka.extern.VideoNalu>}
|
|
2354
2359
|
*/
|
|
2355
|
-
parseNalus(pes, lastNalu) {}
|
|
2360
|
+
parseNalus(pes, lastNalu, lastState) {}
|
|
2356
2361
|
/**
|
|
2357
2362
|
* Return the ID3 metadata
|
|
2358
2363
|
* @return {!Array.<shaka.extern.ID3Metadata>}
|
|
@@ -5603,6 +5608,7 @@ shaka.ui.AdPosition = class extends shaka.ui.Element {
|
|
|
5603
5608
|
};
|
|
5604
5609
|
/**
|
|
5605
5610
|
* @extends {shaka.ui.Element}
|
|
5611
|
+
* @implements {shaka.extern.IUIPlayButton}
|
|
5606
5612
|
*/
|
|
5607
5613
|
shaka.ui.PlayButton = class extends shaka.ui.Element {
|
|
5608
5614
|
/**
|