Skip to content

Commit

Permalink
Sync audio fragment loading with main discontinuity and time (#6491)
Browse files Browse the repository at this point in the history
* Sync audio fragment loading with main discontinuity and time

* Fragment finder and Append Error fixes
  • Loading branch information
robwalch authored Jun 13, 2024
1 parent 54d888b commit aed1b4b
Show file tree
Hide file tree
Showing 22 changed files with 447 additions and 328 deletions.
8 changes: 4 additions & 4 deletions api-extractor/report/hls.js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class BaseStreamController extends TaskLoop implements NetworkComponentAP
// (undocumented)
protected fragmentTracker: FragmentTracker;
// (undocumented)
protected fragPrevious: Fragment | null;
protected fragPrevious: MediaFragment | null;
// (undocumented)
protected getAppendedFrag(position: number, playlistType?: PlaylistLevelType): Fragment | null;
// (undocumented)
Expand Down Expand Up @@ -1429,7 +1429,7 @@ export class Fragment extends BaseSegment {
// (undocumented)
get end(): number;
// (undocumented)
endDTS: number;
endDTS?: number;
// (undocumented)
endList?: boolean;
// (undocumented)
Expand Down Expand Up @@ -1469,7 +1469,7 @@ export class Fragment extends BaseSegment {
// (undocumented)
start: number;
// (undocumented)
startDTS: number;
startDTS?: number;
// (undocumented)
startPTS?: number;
// (undocumented)
Expand Down Expand Up @@ -1976,7 +1976,7 @@ export interface InitPTSFoundData {
// (undocumented)
frag: MediaFragment;
// (undocumented)
id: string;
id: PlaylistLevelType;
// (undocumented)
initPTS: number;
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion src/controller/abr-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ class AbrController extends Logger implements AbrComponentAPI {
1,
)} fetchDuration:${fetchDuration.toFixed(
1,
)} firstSelection:${firstSelection} codecSet:${level.codecSet} videoRange:${level.videoRange} hls.loadLevel:${loadLevel}`,
)} firstSelection:${firstSelection} codecSet:${levelInfo.codecSet} videoRange:${levelInfo.videoRange} hls.loadLevel:${loadLevel}`,
);
}
if (firstSelection) {
Expand Down
Loading

0 comments on commit aed1b4b

Please sign in to comment.