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

HLS failure with PRELOAD-HINT and low-latency mode disabled #4185

Closed
avelad opened this issue May 3, 2022 · 5 comments · Fixed by #4212 or #4235
Closed

HLS failure with PRELOAD-HINT and low-latency mode disabled #4185

avelad opened this issue May 3, 2022 · 5 comments · Fixed by #4212 or #4235
Assignees
Labels
component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@avelad
Copy link
Collaborator

avelad commented May 3, 2022

Have you read the FAQ and checked for duplicate open issues? YEs

What version of Shaka Player are you using? 4.0.0

Can you reproduce the issue with our latest release version? Yes

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

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

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using?
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36'

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

What are the manifest and license server URIs?

https://pf5.broadpeak-vcdn.com/bpk-tv/tvrll/llcmaf/index.m3u8

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

Default

What did you do?

Load https://shaka-player-demo.appspot.com/demo/#audiolang=es-ES;textlang=es-ES;uilang=es-ES;asset=https://pf5.broadpeak-vcdn.com/bpk-tv/tvrll/llcmaf/index.m3u8;panel=CUSTOM%20CONTENT;build=uncompiled

What did you expect to happen?
The stream works

What actually happened?

image

@avelad avelad added type: bug Something isn't working correctly component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release labels May 3, 2022
@avelad
Copy link
Collaborator Author

avelad commented May 3, 2022

@theodab you are the HLS expert, can you take a look at it?

@github-actions github-actions bot added this to the v3.3 milestone May 3, 2022
@avelad avelad modified the milestones: v3.3, v4.1 May 4, 2022
@joeyparrish joeyparrish self-assigned this May 10, 2022
@joeyparrish
Copy link
Member

From what I can tell in the debugger, it's not RENDITION-REPORT that triggers the issue, but PRELOAD-HINT.

The RENDITION-REPORT is attached to the last segment, which is generated from PRELOAD-HINT. I think without RENDITION-REPORT, the results would be the same.

This is what the HLS parser is doing when it throws that error:

    if (this.lowLatencyMode_ && hlsSegment.partialSegments.length) {
      // ...
    } else {
      // EXTINF tag must be available if the segment has no partial segments.
      if (!extinfTag) {
        throw new shaka.util.Error(
            shaka.util.Error.Severity.CRITICAL,
            shaka.util.Error.Category.MANIFEST,
            shaka.util.Error.Code.HLS_REQUIRED_TAG_MISSING, 'EXTINF');
      }
    }

Here hlsSegment.partialSegments.length is 1, but lowLatencyMode_ is false. I think the else should really be else if (hlsSegment.partialSegments.length == 0). The check for EXTINF should only occur if there are no partial segments, regardless of low-latency mode.

@joeyparrish joeyparrish changed the title HLS - Presence of #EXT-X-RENDITION-REPORT causes Shaka Error MANIFEST.HLS_REQUIRED_TAG_MISSING (EXTINF) HLS failure with PRELOAD-HINT and low-latency mode disabled May 10, 2022
@joeyparrish
Copy link
Member

joeyparrish commented May 10, 2022

I have what I think is a good fix (somewhat more detailed than my comments above), but I got distracted by other duties and haven't quite finished the PR. I still need to write a regression test, verify that it fails, then verify that the fix fixes it. Hopefully I'll finish that later tonight or more likely tomorrow (Wednesday America/Pacific time).

joeyparrish added a commit to joeyparrish/shaka-player that referenced this issue May 11, 2022
When LL mode was off, the HLS parser would throw on X-PRELOAD-HINT
segments.  The logic for requiring EXTINF has been corrected so that
this will not happen.

Closes shaka-project#4185
joeyparrish added a commit that referenced this issue May 11, 2022
When LL mode was off, the HLS parser would throw on X-PRELOAD-HINT
segments.  The logic for requiring EXTINF has been corrected so that
this will not happen.

Closes #4185
This was referenced May 11, 2022
joeyparrish added a commit that referenced this issue May 17, 2022
When LL mode was off, the HLS parser would throw on X-PRELOAD-HINT
segments.  The logic for requiring EXTINF has been corrected so that
this will not happen.

Closes #4185
joeyparrish added a commit that referenced this issue May 17, 2022
When LL mode was off, the HLS parser would throw on X-PRELOAD-HINT
segments.  The logic for requiring EXTINF has been corrected so that
this will not happen.

Closes #4185
joeyparrish added a commit that referenced this issue May 17, 2022
When LL mode was off, the HLS parser would throw on X-PRELOAD-HINT
segments.  The logic for requiring EXTINF has been corrected so that
this will not happen.

Closes #4185
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
2 participants