mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
19 lines
577 B
JavaScript
19 lines
577 B
JavaScript
//#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
|