forked from video-dev/hls.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run sync to live edge following level update
- Loading branch information
Rob Walch
committed
Nov 5, 2020
1 parent
5653dd8
commit 0e24ba3
Showing
4 changed files
with
35 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,52 @@ | ||
import Fragment from '../../src/loader/fragment'; | ||
import { PlaylistLevelType } from '../../src/types/loader'; | ||
|
||
function fragment (options) { | ||
const frag = new Fragment(PlaylistLevelType.MAIN, ''); | ||
Object.assign(frag, options); | ||
return frag; | ||
} | ||
|
||
export const mockFragments = [ | ||
{ | ||
fragment({ | ||
programDateTime: 1505502661523, | ||
endProgramDateTime: 1505502666523, | ||
level: 2, | ||
duration: 5.000, | ||
start: 0, | ||
sn: 0, | ||
cc: 0 | ||
}, | ||
}), | ||
// Discontinuity with PDT 1505502671523 which does not exist in level 1 as per fragPrevious | ||
{ | ||
fragment({ | ||
programDateTime: 1505502671523, | ||
endProgramDateTime: 1505502676523, | ||
level: 2, | ||
duration: 5.000, | ||
start: 5.000, | ||
sn: 1, | ||
cc: 1 | ||
}, | ||
{ | ||
}), | ||
fragment({ | ||
programDateTime: 1505502676523, | ||
endProgramDateTime: 1505502681523, | ||
level: 2, | ||
duration: 5.000, | ||
start: 10.000, | ||
sn: 2, | ||
cc: 1 | ||
}, | ||
{ | ||
}), | ||
fragment({ | ||
programDateTime: 1505502681523, | ||
endProgramDateTime: 1505502686523, | ||
level: 2, | ||
duration: 5.000, | ||
start: 15.000, | ||
sn: 3, | ||
cc: 1 | ||
}, | ||
{ | ||
}), | ||
fragment({ | ||
programDateTime: 1505502686523, | ||
endProgramDateTime: 1505502691523, | ||
level: 2, | ||
duration: 5.000, | ||
start: 20.000, | ||
sn: 4, | ||
cc: 1 | ||
} | ||
}) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters