#10626·shaka-player

Zap to Startover+offset stuck on freeze frame

Author: david-hm-morganCreated Sep 22, 2026Updated Sep 22, 2026

FAQ

  • I have read the FAQ and checked for duplicate open issues

If the problem is related to FairPlay, have you read the tutorial?

Not applicable

What version of Shaka Player are you using?

4.16.29

Can you reproduce the issue with our latest release version?

Not tested

Can you reproduce the issue with the latest code from main?

Not tested

Are you using the demo app or your own custom app?

Custom app

What browser and OS are you using?

Chrome Windows 11

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

No response

What are the manifest and license server URIs?

Not shareable as geoblocked and commercially sensitive.

What configuration are you using? What is the output of player.getNonDefaultConfiguration()?

json
{
    "drm": {
        "servers": {
            "com.microsoft.playready": "http:callback-uri",
            "com.widevine.alpha": "http:callback-uri",
            "com.tvkey.drm": "http:callback-uri",
            "com.nagra.prm": "http:callback-uri"
        },
        "advanced": {
            "com.widevine.alpha": {
                "distinctiveIdentifierRequired": false,
                "persistentStateRequired": true,
                "videoRobustness": [
                    "SW_SECURE_CRYPTO"
                ],
                "audioRobustness": [
                    "SW_SECURE_CRYPTO"
                ],
                "sessionType": "",
                "serverCertificate": {
                    
                },
                "serverCertificateUri": "",
                "individualizationServer": ""
            }
        },
        "preferredKeySystems": [
            "com.widevine.alpha"
        ]
    },
    "manifest": {
        "retryParameters": {
            "baseDelay": 300,
            "timeout": 5000
        },
        "defaultPresentationDelay": 14,
        "segmentRelativeVttTiming": true,
        "dash": {
            "ignoreMinBufferTime": true,
            "ignoreSuggestedPresentationDelay": true
        }
    },
    "streaming": {
        "retryParameters": {
            "baseDelay": 300,
            "timeout": 10030
        },
        "rebufferingGoal": 0.01,
        "bufferingGoal": 6,
        "bufferBehind": 0,
        "gapDetectionThreshold": 0.4,
        "inaccurateManifestTolerance": 0,
        "crossBoundaryStrategy": "reset_to_encrypted"
    },
    "abr": {
        "useNetworkInformation": false,
        "defaultBandwidthEstimate": 8000000,
        "restrictions": {
            "minBandwidth": 1000000
        },
        "minTimeToSwitch": 8
    },
    "autoShowText": 2,
    "preferredAudioCodecs": [
        "mp4a.40.2"
    ],
    "cmcd": {
        "sessionId": "b4a53adf-4b15-45e1-b2c6-d97104e78e8f"
    }
}

What did you do?

  1. Play live stream at leading edge
  2. Pause
  3. Zap to equivalent startover stream with startTime offset of the resumption point

this is not 100% reprod! Approx 1 in 4 reprod attempts will experience this.

What did you expect to happen?

Playback continues without issue.

What actually happened?

  • A few seconds of playback at most.
  • Freeze frame.
  • Endless loop in logs
  • no recovery via subsequent seeks

I collected logs from both OK and REPROD scenarios, and asked Copilot to assess them:

1. Earliest Subtle Divergence: Manifest Update Append

Lines:

  • REPROD.development.REDACTED-1790059019147.log (apilib.js:1 Appending 1 entries)
  • OK.development.REDACTED-1790058739395.log (No entries appended)

What happened:

  • Following initial load, both streams receive a manifest update (Updating manifest...).
  • In OK, the updated manifest contains the same timeline end for active representations (dzEAADCf / video:4, dyHiAZ8. / audio:9), so no new entries are appended.
  • In REPROD, the manifest update brings in new timeline entries:
    apilib.js:1 Appending 1 entries  (dzEAADCf / video:4, line 961)
    apilib.js:1 Appending 1 entries  (trickmodedzEgCyCf, line 971)
    apilib.js:1 Appending 1 entries  (dyHiAZ8. / audio:9, line 978)

2. Earliest Functional Failure Divergence: Segment Lookup Failure on Stream Switch

Lines:

  • REPROD.development.REDACTED-1790059019147.log
  • OK.development.REDACTED-1790058739395.log

Comparison:

Event OK Log (startTime: 4654) REPROD Log (startTime: 4916)
Track Switch Calling switch_(), bandwidth=9597 kbps Calling switch_(), bandwidth=10834 kbps
Stream Transition switch: switching to Stream (video:4)<br>switch: switching to Stream (audio:9) switch: switching to Stream (video:4)<br>switch: switching to Stream (audio:9)
Segment Lookup Find 4664<br>SegmentPrefetch(video:4) reused prefetched segment at time: 4664<br>SegmentPrefetch(audio:9) reused prefetched segment at time: 4664.012854... Find 4926<br>Aborting current segment request.<br>(video:4) cannot find segment endTime: 4926<br>(audio:9) cannot find segment endTime: 4926.007520833334
Result Playback succeeds and continues buffering Enters an infinite retry loop failing to find segments

Summary of Cause

In REPROD, the zap target start time (4916s) is very close to the live edge of the catchup window (~4946s). When initial buffering fills up to 4926s and an ABR switch (switch_) occurs, StreamingEngine attempts to look up the next segment from the newly selected stream matching bufferEnd: 4926. Because segment 4926 is beyond what is available or aligned in the updated TimelineSegmentIndex, Shaka Player logs cannot find segment endTime: 4926 and fails to continue buffering.

Are you planning to send a PR to add it?

No

Source: shaka-project/shaka-player