diff --git a/packages/spf/src/core/types/index.ts b/packages/spf/src/core/types/index.ts index bf7b14a5..23c48011 100644 --- a/packages/spf/src/core/types/index.ts +++ b/packages/spf/src/core/types/index.ts @@ -180,9 +180,6 @@ export type TextTrack = Track & { */ export type PartiallyResolvedTextTrack = PartiallyResolved; -/** - * Unresolved text track (alias for backwards compatibility). - /** * Union of all resolved track types. */ @@ -196,9 +193,6 @@ export type PartiallyResolvedTrack = | PartiallyResolvedAudioTrack | PartiallyResolvedTextTrack; -/** - * Union of all unresolved track types (alias for backwards compatibility). - // ============================================================================= // Switching and Selection Sets // ============================================================================= diff --git a/packages/utils/src/dom/text-track.ts b/packages/utils/src/dom/text-track.ts index ed61adbc..521ba9be 100644 --- a/packages/utils/src/dom/text-track.ts +++ b/packages/utils/src/dom/text-track.ts @@ -12,5 +12,5 @@ export function getTextTrackList(media: HTMLMediaElement, filterPred: (textTrack } function sortByTextTrackKind(a: TextTrack, b: TextTrack): number { - return a.kind >= b.kind ? 1 : -1; + return a.kind > b.kind ? 1 : a.kind < b.kind ? -1 : 0; }