mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
build(media): build26 from 45504a2b
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
//#region src/core/constants.ts
|
||||
/** A frozen, empty `TimeRanges`-like value for hosts with no ranges. */
|
||||
const EMPTY_TIME_RANGES = Object.freeze({
|
||||
length: 0,
|
||||
start: () => 0,
|
||||
end: () => 0
|
||||
});
|
||||
/** A frozen, empty `TextTrackList`-like value for hosts with no text tracks. */
|
||||
const EMPTY_TEXT_TRACKS = Object.assign(new EventTarget(), {
|
||||
length: 0,
|
||||
*[Symbol.iterator]() {},
|
||||
getTrackById: () => null
|
||||
});
|
||||
const EMPTY_REMOTE = new EventTarget();
|
||||
Object.freeze({});
|
||||
//#endregion
|
||||
export { EMPTY_REMOTE, EMPTY_TEXT_TRACKS, EMPTY_TIME_RANGES };
|
||||
|
||||
//# sourceMappingURL=constants.js.map
|
||||
Reference in New Issue
Block a user