Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitles not loading correctly when seeking backwards in live stream #4569

Open
sreinus opened this issue Sep 17, 2024 · 3 comments
Open

Subtitles not loading correctly when seeking backwards in live stream #4569

sreinus opened this issue Sep 17, 2024 · 3 comments

Comments

@sreinus
Copy link

sreinus commented Sep 17, 2024

Environment
dash.js version: 4.7.4
Browser name/version: Chrome 128.0.6613.85
OS name/version: MacOS Sonoma 14.5

Steps to reproduce
Start watching a live program.
Seek a few minutes back from the live edge, causing the manifest file to change and a catchup player to start.
Observe subtitle behavior during and after seeking.

Expected behavior
Subtitles should continuously load and display correctly when seeking backwards in a live stream.

Actual behavior
When seeking backwards, all subtitles are downloaded at once as observed in the network tab. However, no subtitles are displayed after the seek. Subtitles only reappear when the playing position reaches the timestamp where the original backward seek was performed.
image

Manifest
<?xml version="1.0" encoding="utf-8"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:ns1="http://www.w3.org/2001/XMLSchema-instance" xmlns:cenc="urn:mpeg:cenc:2013" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash-if-simple" maxSegmentDuration="PT6S" minBufferTime="PT6S" type="dynamic" publishTime="2024-09-17T08:31:24Z" timeShiftBufferDepth="PT6H0S" availabilityStartTime="2024-09-17T08:02:59Z" minimumUpdatePeriod="PT0S"> <Period id="p0" start="PT0S"> <AdaptationSet mimeType="video/mp4" segmentAlignment="true" startWithSAP="1"> <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="60d1cd8a-4ea3-51bb-8790-13f7ff1c4631" /> <ContentProtection value="Widevine" schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> <cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQYNHNik6jUbuHkBP3/xxGMRoFQ29uYXgiJGU4NTBkODdlLWQ0NDMtNDY0NS1hZDJhLWQ1NDk2ZGFkMmI4Mw==</cenc:pssh> </ContentProtection> <ContentProtection value="MSPR 2.0" schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"> <cenc:pssh>AAAECHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAA+joAwAAAQABAN4DPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwATABBAF8AVQBSAEwAPgBoAHQAdABwADoALwAvADYAMgAuADYANQAuADIANAA4AC4ANgAvAGMAeABwAGwAYQB5AHIAZQBhAGQAeQAvAHIAaQBnAGgAdABzAG0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAEEAXwBVAFIATAA+ADwATABVAEkAXwBVAFIATAA+AGgAdAB0AHAAOgAvAC8ANgAyAC4ANgA1AC4AMgA0ADgALgA2AC8AYwB4AHAAbABhAHkAcgBlAGEAZAB5AC8AcgBpAGcAaAB0AHMAbQBhAG4AYQBnAGUAcgAuAGEAcwBtA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AOAAuADYALwBjAHgAcABsAGEAeQByAGUAYQBkAHkALwByAGkAZwBoAHQAcwBtAGEAbgBhAGcAZQByAC4AYQBzAG0AeAA8AC8ATABBAF8AVQBSAEwAPgA8AEwAVQBJAF8AVQBSAEwAPgBoAHQAdABwADoALwAvADYAMgAuADYANQAuADIANAA4AC4ANgAvAGMAeABwAGwAYQB5AHIAZQBhAGQAeQAvAHIAaQBnAGgAdABzAG0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAFUASQBfAFUAUgBMAD4APABLAEkARAA+AGkAcwAzAFIAWQBLAE4ATwB1ADEARwBIAGsAQgBQADMALwB4AHgARwBNAFEAPQA9ADwALwBLAEkARAA+ADwAQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwAgAHgAbQBsAG4AcwA9ACIAIgA+ADwAQwBvAG4AdABlAG4AdABSAGUAZgA+AGUAOAA1ADAAZAA4ADcAZQAtAGQANAA0ADMALQA0ADYANAA1AC0AYQBkADIAYQAtAGQANQA0ADkANgBkAGEAZAAyAGIAOAAzADwALwBDAG8AbgB0AGUAbgB0AFIAZQBmAD4APAAvAEMAVQBTAFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AEMASABFAEMASwBTAFUATQA+AHYAawBIAGEAZwBUAEIAVAB4AGMATQA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</pro> </ContentProtection> <SegmentTemplate initialization="sc-gaFECw/$RepresentationID$_init.mp4" media="sc-gaFECw/$RepresentationID$_t$Time$.m4s" timescale="90000" presentationTimeOffset="155390416120368"> <SegmentTimeline> <S t="155390416120368" d="518400" r="295"/> </SegmentTimeline> </SegmentTemplate> <Representation id="V2" bandwidth="5569000" codecs="avc1.4d4028" frameRate="25" width="1920" height="1080" sar="1:1"/> </AdaptationSet> <AdaptationSet mimeType="audio/mp4" lang="eng" segmentAlignment="true" startWithSAP="1"> <Label>English</Label> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/> <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="60d1cd8a-4ea3-51bb-8790-13f7ff1c4631" /> <ContentProtection value="Widevine" schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> <cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQYNHNik6jUbuHkBP3/xxGMRoFQ29uYXgiJGU4NTBkODdlLWQ0NDMtNDY0NS1hZDJhLWQ1NDk2ZGFkMmI4Mw==</cenc:pssh> </ContentProtection> <ContentProtection value="MSPR 2.0" schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"> <cenc:pssh>AAAECHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAA+joAwAAAQABAN4DPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwATABBAF8AVQBSAEwAPgBoAHQAdABwADoALwAvADYAMgAuADYANQAuADIANAA4AC4ANgAvAGMAeABwAGwAYQB5AHIAZQBhAGQAeQAvAHIAaQBnAGgAdABzAG0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAEEAX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EUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEwAQQBfAFUAUgBMAD4AaAB0AHQAcAA6AC8ALwA2ADIALgA2ADUALgAyADQAOAAuADYALwBjAHgAcABsAGEAeQByAGUAYQBkAHkALwByAGkAZwBoAHQAcwBtAGEAbgBhAGcAZQByAC4AYQBzAG0AeAA8AC8ATABBAF8AVQBSAEwAPgA8AEwAVQBJAF8AVQBSAEwAPgBoAHQAdABwADoALwAvADYAMgAuADYANQAuADIANAA4AC4ANgAvAGMAeABwAGwAYQB5AHIAZQBhAGQAeQAvAHIAaQBnAGgAdABzAG0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAFUASQBfAFUAUgBMAD4APABLAEkARAA+AGkAcwAzAFIAWQBLAE4ATwB1ADEARwBIAGsAQgBQADMALwB4AHgARwBNAFEAPQA9ADwALwBLAEkARAA+ADwAQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwAgAHgAbQBsAG4AcwA9ACIAIgA+ADwAQwBvAG4AdABlAG4AdABSAGUAZgA+AGUAOAA1ADAAZAA4ADcAZQAtAGQANAA0ADMALQA0ADYANAA1AC0AYQBkADIAYQAtAGQANQA0ADkANgBkAGEAZAAyAGIAOAAzADwALwBDAG8AbgB0AGUAbgB0AFIAZQBmAD4APAAvAEMAVQBTAFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AEMASABFAEMASwBTAFUATQA+AHYAawBIAGEAZwBUAEIAVAB4AGMATQA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</pro> </ContentProtection> <SegmentTemplate initialization="sc-gaFECw/$RepresentationID$_init.mp4" media="sc-gaFECw/$RepresentationID$_t$Time$.m4s" timescale="90000" presentationTimeOffset="155390416120368"> <SegmentTimeline> <S t="155390416121208" d="518400" r="295"/> </SegmentTimeline> </SegmentTemplate> <Representation id="A0" bandwidth="64000" codecs="mp4a.40.2" audioSamplingRate="48000"><AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/></Representation> </AdaptationSet> <AdaptationSet mimeType="audio/mp4" lang="rus" segmentAlignment="true" startWithSAP="1"> <Label>Russian</Label> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/> <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="60d1cd8a-4ea3-51bb-8790-13f7ff1c4631" /> <ContentProtection value="Widevine" schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"> <cenc:pssh>AAAAYXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAEEIARIQYNHNik6jUbuHkBP3/xxGMRoFQ29uYXgiJGU4NTBkODdlLWQ0NDMtNDY0NS1hZDJhLWQ1NDk2ZGFkMmI4Mw==</cenc:pssh> </ContentProtection> <ContentProtection value="MSPR 2.0" schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"> <cenc:pssh>AAAECHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAA+joAwAAAQABAN4DPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUg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ZwBUAEIAVAB4AGMATQA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AC8ARABBAFQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA==</pro> </ContentProtection> <SegmentTemplate initialization="sc-gaFECw/$RepresentationID$_init.mp4" media="sc-gaFECw/$RepresentationID$_t$Time$.m4s" timescale="90000" presentationTimeOffset="155390416120368"> <SegmentTimeline> <S t="155390416121208" d="518400" r="295"/> </SegmentTimeline> </SegmentTemplate> <Representation id="A1" bandwidth="64000" codecs="mp4a.40.2" audioSamplingRate="48000"><AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/></Representation> </AdaptationSet> <AdaptationSet mimeType="application/mp4" lang="est" segmentAlignment="true" startWithSAP="1"> <Label>Estonian</Label> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="subtitle"/> <SegmentTemplate initialization="sc-gaFECw/$RepresentationID$_init.mp4" media="sc-gaFECw/$RepresentationID$_t$Time$.m4s" timescale="90000" presentationTimeOffset="155390416120368"> <SegmentTimeline> <S t="155390416120368" d="518400" r="295"/> </SegmentTimeline> </SegmentTemplate> <Representation id="T1" bandwidth="4000" codecs="wvtt"/> </AdaptationSet> <AdaptationSet mimeType="image/jpeg" contentType="image"> <SegmentTemplate media="sc-gaFECw/V0_t$Time$.jpg?scale=160x90" timescale="90000" presentationTimeOffset="155390416120368"> <SegmentTimeline> <S t="155390416120368" d="518400" r="295"/> </SegmentTimeline> </SegmentTemplate> <Representation id="Thumb" bandwidth="10000" width="160" height="90"> <EssentialProperty schemeIdUri="http://dashif.org/thumbnail_tile" value="1x1"/> </Representation> </AdaptationSet> </Period> </MPD>

Settings
{ "debug": { "logLevel": 2, "dispatchEvent": false }, "streaming": { "abandonLoadTimeout": 10000, "wallclockTimeUpdateInterval": 100, "manifestUpdateRetryInterval": 100, "liveUpdateTimeThresholdInMilliseconds": 0, "cacheInitSegments": false, "applyServiceDescription": true, "applyProducerReferenceTime": true, "applyContentSteering": true, "eventControllerRefreshDelay": 100, "enableManifestDurationMismatchFix": true, "parseInbandPrft": false, "enableManifestTimescaleMismatchFix": false, "capabilities": { "filterUnsupportedEssentialProperties": true, "useMediaCapabilitiesApi": false }, "timeShiftBuffer": { "calcFromSegmentTimeline": false, "fallbackToSegmentTimeline": true }, "metrics": { "maxListDepth": 100 }, "delay": { "liveDelayFragmentCount": 4, "liveDelay": null, "useSuggestedPresentationDelay": true }, "protection": { "keepProtectionMediaKeys": false, "ignoreEmeEncryptedEvent": false, "detectPlayreadyMessageFormat": true }, "buffer": { "enableSeekDecorrelationFix": false, "fastSwitchEnabled": true, "flushBufferAtTrackSwitch": false, "reuseExistingSourceBuffers": true, "bufferPruningInterval": 10, "bufferToKeep": 20, "bufferTimeAtTopQuality": 30, "bufferTimeAtTopQualityLongForm": 60, "initialBufferLevel": null, "stableBufferTime": 24, "longFormContentDurationThreshold": 600, "stallThreshold": 0.3, "useAppendWindow": true, "setStallState": true, "avoidCurrentTimeRangePruning": false, "useChangeTypeForTrackSwitch": true, "mediaSourceDurationInfinity": true, "resetSourceBuffersForTrackSwitch": false }, "gaps": { "jumpGaps": true, "jumpLargeGaps": true, "smallGapLimit": 1.5, "threshold": 0.3, "enableSeekFix": true, "enableStallFix": false, "stallSeek": 0.1 }, "utcSynchronization": { "enabled": true, "useManifestDateHeaderTimeSource": true, "backgroundAttempts": 2, "timeBetweenSyncAttempts": 30, "maximumTimeBetweenSyncAttempts": 600, "minimumTimeBetweenSyncAttempts": 2, "timeBetweenSyncAttemptsAdjustmentFactor": 2, "maximumAllowedDrift": 100, "enableBackgroundSyncAfterSegmentDownloadError": true, "defaultTimingSource": { "scheme": "urn:mpeg:dash:utc:http-xsdate:2014", "value": "https://time.akamai.com/?iso&ms" } }, "scheduling": { "defaultTimeout": 500, "lowLatencyTimeout": 0, "scheduleWhilePaused": false }, "text": { "defaultEnabled": true, "dispatchForManualRendering": true, "extendSegmentedCues": true, "imsc": { "displayForcedOnlyMode": false, "enableRollUp": true }, "webvtt": { "customRenderingEnabled": false } }, "liveCatchup": { "maxDrift": null, "playbackRate": { "min": null, "max": null }, "playbackBufferMin": 0.5, "enabled": null, "mode": "liveCatchupModeDefault" }, "lastBitrateCachingInfo": { "enabled": true, "ttl": 360000 }, "lastMediaSettingsCachingInfo": { "enabled": true, "ttl": 360000 }, "saveLastMediaSettingsForCurrentStreamingSession": true, "cacheLoadThresholds": { "video": 50, "audio": 5 }, "trackSwitchMode": { "audio": "alwaysReplace", "video": "neverReplace" }, "selectionModeForInitialTrack": "highestSelectionPriority", "fragmentRequestTimeout": 20000, "fragmentRequestProgressTimeout": -1, "manifestRequestTimeout": 10000, "retryIntervals": { "MPD": 2000, "XLinkExpansion": 500, "MediaSegment": 1000, "InitializationSegment": 1000, "BitstreamSwitchingSegment": 1000, "IndexSegment": 1000, "FragmentInfoSegment": 1000, "license": 1000, "other": 1000, "lowLatencyReductionFactor": 10 }, "retryAttempts": { "MPD": 10, "XLinkExpansion": 1, "MediaSegment": 3, "InitializationSegment": 3, "BitstreamSwitchingSegment": 3, "IndexSegment": 3, "FragmentInfoSegment": 3, "license": 3, "other": 3, "lowLatencyMultiplyFactor": 5 }, "abr": { "movingAverageMethod": "slidingWindow", "ABRStrategy": "abrDynamic", "additionalAbrRules": { "insufficientBufferRule": true, "switchHistoryRule": true, "droppedFramesRule": true, "abandonRequestsRule": true }, "abrRulesParameters": { "abandonRequestsRule": { "graceTimeThreshold": 500, "abandonMultiplier": 1.8, "minLengthToAverage": 5 } }, "bandwidthSafetyFactor": 0.9, "useDefaultABRRules": true, "useDeadTimeLatency": true, "limitBitrateByPortal": false, "usePixelRatioInLimitBitrateByPortal": false, "maxBitrate": { "audio": -1, "video": -1 }, "minBitrate": { "audio": -1, "video": -1 }, "maxRepresentationRatio": { "audio": 1, "video": 1 }, "initialBitrate": { "audio": -1, "video": -1 }, "initialRepresentationRatio": { "audio": -1, "video": -1 }, "autoSwitchBitrate": { "audio": true, "video": true }, "fetchThroughputCalculationMode": "abrFetchThroughputCalculationMoofParsing" }, "cmcd": { "enabled": false, "sid": null, "cid": null, "rtp": null, "rtpSafetyFactor": 5, "mode": "query", "enabledKeys": [ "br", "d", "ot", "tb", "bl", "dl", "mtp", "nor", "nrr", "su", "bs", "rtp", "cid", "pr", "sf", "sid", "st", "v" ] }, "cmsd": { "enabled": false, "abr": { "applyMb": false, "etpWeightRatio": 0 } } }, "errors": { "recoverAttempts": { "mediaErrorDecode": 5 } } }

@sreinus sreinus added the Bug label Sep 17, 2024
@dsilhavy
Copy link
Collaborator

@sreinus Do you see the same behavior in the nightly build? https://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html

@sreinus
Copy link
Author

sreinus commented Oct 24, 2024

@dsilhavy unfortunately the issue still persists with the nightly build.

@sreinus
Copy link
Author

sreinus commented Oct 24, 2024

I found the issue. It seems that in TextSourceBuffer.js timestampOffset gives me a negative number. So I fixed it by adding an extra check in _getTimestampOffset() method. Now it looks like this:
function _getTimestampOffset() {
return !isNaN(instance.timestampOffset) && instance.timestampOffset > 0 ? instance.timestampOffset : 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants