shaka-player 4.7.10 → 4.7.12
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/README.md +2 -4
- package/dist/controls.css +1 -1
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +4 -5
- package/dist/locales.js +31 -31
- package/dist/shaka-player.compiled.d.ts +12 -10
- package/dist/shaka-player.compiled.debug.d.ts +12 -10
- package/dist/shaka-player.compiled.debug.externs.js +78 -64
- package/dist/shaka-player.compiled.debug.js +190 -183
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.externs.js +78 -64
- package/dist/shaka-player.compiled.js +1122 -1115
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +12 -10
- package/dist/shaka-player.ui.debug.d.ts +12 -10
- package/dist/shaka-player.ui.debug.externs.js +78 -64
- package/dist/shaka-player.ui.debug.js +200 -193
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.externs.js +78 -64
- package/dist/shaka-player.ui.js +1250 -1243
- package/dist/shaka-player.ui.map +4 -4
- package/externs/shaka/player.js +32 -19
- package/lib/abr/simple_abr_manager.js +21 -26
- package/lib/ads/ad_manager.js +1 -1
- package/lib/cast/cast_proxy.js +1 -3
- package/lib/cast/cast_sender.js +8 -11
- package/lib/cea/cea608_memory.js +1 -1
- package/lib/cea/ts_cea_parser.js +10 -1
- package/lib/dash/dash_parser.js +3 -0
- package/lib/deprecate/deprecate.js +1 -1
- package/lib/hls/hls_parser.js +40 -19
- package/lib/media/drm_engine.js +6 -3
- package/lib/media/manifest_parser.js +3 -2
- package/lib/media/media_source_engine.js +25 -12
- package/lib/media/presentation_timeline.js +23 -0
- package/lib/media/segment_utils.js +10 -1
- package/lib/player.js +19 -6
- package/lib/polyfill/media_capabilities.js +20 -1
- package/lib/polyfill/mediasource.js +35 -43
- package/lib/text/vtt_text_parser.js +53 -52
- package/lib/transmuxer/h264.js +3 -3
- package/lib/transmuxer/h265.js +3 -3
- package/lib/transmuxer/ts_transmuxer.js +42 -3
- package/lib/util/error.js +1 -0
- package/lib/util/manifest_parser_utils.js +1 -0
- package/lib/util/mp4_parser.js +57 -0
- package/lib/util/platform.js +4 -0
- package/lib/util/ts_parser.js +101 -12
- package/package.json +2 -2
- package/ui/less/containers.less +1 -0
- package/lib/polyfill/storage_estimate.js +0 -57
|
@@ -60,6 +60,59 @@ shaka.util.IReleasable = class {
|
|
|
60
60
|
*/
|
|
61
61
|
release() {}
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @summary
|
|
65
|
+
* An EventManager maintains a collection of "event
|
|
66
|
+
* bindings" between event targets and event listeners.
|
|
67
|
+
* @implements {shaka.util.IReleasable}
|
|
68
|
+
*/
|
|
69
|
+
shaka.util.EventManager = class {
|
|
70
|
+
/** */
|
|
71
|
+
constructor() {}
|
|
72
|
+
/**
|
|
73
|
+
* Detaches all event listeners.
|
|
74
|
+
* @override
|
|
75
|
+
*/
|
|
76
|
+
release() {}
|
|
77
|
+
/**
|
|
78
|
+
* Attaches an event listener to an event target.
|
|
79
|
+
* @param {EventTarget} target The event target.
|
|
80
|
+
* @param {string} type The event type.
|
|
81
|
+
* @param {shaka.util.EventManager.ListenerType} listener The event listener.
|
|
82
|
+
* @param {(boolean|!AddEventListenerOptions)=} options An object that
|
|
83
|
+
* specifies characteristics about the event listener.
|
|
84
|
+
* The passive option, if true, indicates that this function will never
|
|
85
|
+
* call preventDefault(), which improves scrolling performance.
|
|
86
|
+
*/
|
|
87
|
+
listen(target, type, listener, options) {}
|
|
88
|
+
/**
|
|
89
|
+
* Attaches an event listener to an event target. The listener will be
|
|
90
|
+
* removed when the first instance of the event is fired.
|
|
91
|
+
* @param {EventTarget} target The event target.
|
|
92
|
+
* @param {string} type The event type.
|
|
93
|
+
* @param {shaka.util.EventManager.ListenerType} listener The event listener.
|
|
94
|
+
* @param {(boolean|!AddEventListenerOptions)=} options An object that
|
|
95
|
+
* specifies characteristics about the event listener.
|
|
96
|
+
* The passive option, if true, indicates that this function will never
|
|
97
|
+
* call preventDefault(), which improves scrolling performance.
|
|
98
|
+
*/
|
|
99
|
+
listenOnce(target, type, listener, options) {}
|
|
100
|
+
/**
|
|
101
|
+
* Detaches an event listener from an event target.
|
|
102
|
+
* @param {EventTarget} target The event target.
|
|
103
|
+
* @param {string} type The event type.
|
|
104
|
+
* @param {shaka.util.EventManager.ListenerType=} listener The event listener.
|
|
105
|
+
*/
|
|
106
|
+
unlisten(target, type, listener) {}
|
|
107
|
+
/**
|
|
108
|
+
* Detaches all event listeners from all targets.
|
|
109
|
+
*/
|
|
110
|
+
removeAll() {}
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @typedef {function(!Event)}
|
|
114
|
+
*/
|
|
115
|
+
shaka.util.EventManager.ListenerType;
|
|
63
116
|
/**
|
|
64
117
|
* @summary A set of BufferSource utility functions.
|
|
65
118
|
*/
|
|
@@ -1579,59 +1632,6 @@ shaka.net.NetworkingEngine.OnRequest;
|
|
|
1579
1632
|
* new URI and the second string is the old URI.
|
|
1580
1633
|
*/
|
|
1581
1634
|
shaka.net.NetworkingEngine.OnRetry;
|
|
1582
|
-
/**
|
|
1583
|
-
* @summary
|
|
1584
|
-
* An EventManager maintains a collection of "event
|
|
1585
|
-
* bindings" between event targets and event listeners.
|
|
1586
|
-
* @implements {shaka.util.IReleasable}
|
|
1587
|
-
*/
|
|
1588
|
-
shaka.util.EventManager = class {
|
|
1589
|
-
/** */
|
|
1590
|
-
constructor() {}
|
|
1591
|
-
/**
|
|
1592
|
-
* Detaches all event listeners.
|
|
1593
|
-
* @override
|
|
1594
|
-
*/
|
|
1595
|
-
release() {}
|
|
1596
|
-
/**
|
|
1597
|
-
* Attaches an event listener to an event target.
|
|
1598
|
-
* @param {EventTarget} target The event target.
|
|
1599
|
-
* @param {string} type The event type.
|
|
1600
|
-
* @param {shaka.util.EventManager.ListenerType} listener The event listener.
|
|
1601
|
-
* @param {(boolean|!AddEventListenerOptions)=} options An object that
|
|
1602
|
-
* specifies characteristics about the event listener.
|
|
1603
|
-
* The passive option, if true, indicates that this function will never
|
|
1604
|
-
* call preventDefault(), which improves scrolling performance.
|
|
1605
|
-
*/
|
|
1606
|
-
listen(target, type, listener, options) {}
|
|
1607
|
-
/**
|
|
1608
|
-
* Attaches an event listener to an event target. The listener will be
|
|
1609
|
-
* removed when the first instance of the event is fired.
|
|
1610
|
-
* @param {EventTarget} target The event target.
|
|
1611
|
-
* @param {string} type The event type.
|
|
1612
|
-
* @param {shaka.util.EventManager.ListenerType} listener The event listener.
|
|
1613
|
-
* @param {(boolean|!AddEventListenerOptions)=} options An object that
|
|
1614
|
-
* specifies characteristics about the event listener.
|
|
1615
|
-
* The passive option, if true, indicates that this function will never
|
|
1616
|
-
* call preventDefault(), which improves scrolling performance.
|
|
1617
|
-
*/
|
|
1618
|
-
listenOnce(target, type, listener, options) {}
|
|
1619
|
-
/**
|
|
1620
|
-
* Detaches an event listener from an event target.
|
|
1621
|
-
* @param {EventTarget} target The event target.
|
|
1622
|
-
* @param {string} type The event type.
|
|
1623
|
-
* @param {shaka.util.EventManager.ListenerType=} listener The event listener.
|
|
1624
|
-
*/
|
|
1625
|
-
unlisten(target, type, listener) {}
|
|
1626
|
-
/**
|
|
1627
|
-
* Detaches all event listeners from all targets.
|
|
1628
|
-
*/
|
|
1629
|
-
removeAll() {}
|
|
1630
|
-
};
|
|
1631
|
-
/**
|
|
1632
|
-
* @typedef {function(!Event)}
|
|
1633
|
-
*/
|
|
1634
|
-
shaka.util.EventManager.ListenerType;
|
|
1635
1635
|
/**
|
|
1636
1636
|
* @namespace shaka.util.StringUtils
|
|
1637
1637
|
* @summary A set of string utility functions.
|
|
@@ -1832,6 +1832,14 @@ shaka.util.Mp4Parser = class {
|
|
|
1832
1832
|
* @param {!shaka.extern.ParsedBox} box
|
|
1833
1833
|
*/
|
|
1834
1834
|
static visualSampleEntry(box) {}
|
|
1835
|
+
/**
|
|
1836
|
+
* A callback that tells the Mp4 parser to treat the body of a box as a audio
|
|
1837
|
+
* sample entry. A audio sample entry has some fixed-sized fields
|
|
1838
|
+
* describing the audio codec parameters, followed by an arbitrary number of
|
|
1839
|
+
* appended children. Each child is a box.
|
|
1840
|
+
* @param {!shaka.extern.ParsedBox} box
|
|
1841
|
+
*/
|
|
1842
|
+
static audioSampleEntry(box) {}
|
|
1835
1843
|
/**
|
|
1836
1844
|
* Create a callback that tells the Mp4 parser to treat the body of a box as a
|
|
1837
1845
|
* binary blob and to parse the body's contents using the provided callback.
|
|
@@ -2430,6 +2438,15 @@ shaka.media.PresentationTimeline = class {
|
|
|
2430
2438
|
* @return {boolean}
|
|
2431
2439
|
*/
|
|
2432
2440
|
isStartTimeLocked() {}
|
|
2441
|
+
/**
|
|
2442
|
+
* Sets the initial program date time.
|
|
2443
|
+
* @param {number} initialProgramDateTime
|
|
2444
|
+
*/
|
|
2445
|
+
setInitialProgramDateTime(initialProgramDateTime) {}
|
|
2446
|
+
/**
|
|
2447
|
+
* @return {?number} The initial program date time in seconds.
|
|
2448
|
+
*/
|
|
2449
|
+
getInitialProgramDateTime() {}
|
|
2433
2450
|
/**
|
|
2434
2451
|
* Gives PresentationTimeline a Stream's minimum segment start time.
|
|
2435
2452
|
* @param {number} startTime
|
|
@@ -4881,6 +4898,14 @@ shaka.polyfill.MediaCapabilities.originalMcap;
|
|
|
4881
4898
|
*/
|
|
4882
4899
|
shaka.polyfill.MediaCapabilities.memoizedMediaKeySystemAccessRequests_ = {
|
|
4883
4900
|
|
|
4901
|
+
};
|
|
4902
|
+
/**
|
|
4903
|
+
* A cache that stores the canDisplayType result of calling
|
|
4904
|
+
* `cast.__platform__.canDisplayType`.
|
|
4905
|
+
* @type {(Object<(!string), (!boolean)>)}
|
|
4906
|
+
*/
|
|
4907
|
+
shaka.polyfill.MediaCapabilities.memoizedCanDisplayTypeRequests_ = {
|
|
4908
|
+
|
|
4884
4909
|
};
|
|
4885
4910
|
/**
|
|
4886
4911
|
* @summary A polyfill to patch MSE bugs.
|
|
@@ -4959,17 +4984,6 @@ shaka.polyfill.RandomUUID = class {
|
|
|
4959
4984
|
*/
|
|
4960
4985
|
static install() {}
|
|
4961
4986
|
};
|
|
4962
|
-
/**
|
|
4963
|
-
* @summary A polyfill to provide navigator.storage.estimate in old
|
|
4964
|
-
* webkit browsers.
|
|
4965
|
-
* See: https://developers.google.com/web/updates/2017/08/estimating-available-storage-space#the-present
|
|
4966
|
-
*/
|
|
4967
|
-
shaka.polyfill.StorageEstimate = class {
|
|
4968
|
-
/**
|
|
4969
|
-
* Install the polyfill if needed.
|
|
4970
|
-
*/
|
|
4971
|
-
static install() {}
|
|
4972
|
-
};
|
|
4973
4987
|
/**
|
|
4974
4988
|
* @summary A polyfill to provide Symbol.prototype.description in all browsers.
|
|
4975
4989
|
* See: https://caniuse.com/mdn-javascript_builtins_symbol_description
|