Skip to content

Commit 4296708

Browse files
committed
DE-7860: Show HLS_DATERANGE cues
Until now, we were showing only cues with schemeIdUri com.apple.hls.interstitial, but some cues do not have this attribute. We soften the condition here to show also daterange.
1 parent cc34b44 commit 4296708

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/seekbar/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ function isPreOrPostCue (cue: clpp.TimelineCue): boolean {
7575
export function getUiCues (player: clpp.Player): Cue[] {
7676
const range = player.getSeekRange() as SeekRange
7777
return player.getTimelineCues()
78-
.filter(cue => cue.schemeIdUri === 'com.apple.hls.interstitial')
78+
.filter(cue =>
79+
cue.schemeIdUri === 'com.apple.hls.interstitial' ||
80+
cue.type === clpp.TimelineCueType.HLS_DATERANGE
81+
)
7982
.filter(cue => !isPreOrPostCue(cue))
8083
.map(cue => {
8184
return {

0 commit comments

Comments
 (0)