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

steaming.rebufferingGoal is being ignored after v4.6.0 #6355

Closed
z-cui-233 opened this issue Mar 21, 2024 · 9 comments · Fixed by #6433 or #6546
Closed

steaming.rebufferingGoal is being ignored after v4.6.0 #6355

z-cui-233 opened this issue Mar 21, 2024 · 9 comments · Fixed by #6433 or #6546
Assignees
Labels
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

@z-cui-233
Copy link

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

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

N/A

What version of Shaka Player are you using?

Nightly

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 app

If custom app, can you reproduce the issue using our demo app?
N/A

What browser and OS are you using?
macOS Catalina v10.15.7
Chrome 120.0.6099.216(Official Build) (x86_64)

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

What are the manifest and license server URIs?

Big Buck Bunny: the Dark Truths of a Video Dev Cartoon (DASH)
https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths/dash.mpd

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

The default configuration on shaka demo, with following extra configuration:

{
  "streaming": {
    "rebufferingGoal": 100
  }
}

What did you do?

  1. Go to nightly demo - CUSTOM CONTENT
  2. Click "+" button. and input
{
  "streaming": {
    "rebufferingGoal": 100
  }
}
  1. Save and play.

What did you expect to happen?

By reading this tutorial about rebufferingGoal, I think shaka player should wait for the buffer reaching to 100s to start playing the video. And it actually did if I try it on version 4.5.0 or earlier.

What actually happened?

Video is played without waiting for the rebufferingGoal being achieved.

I'm not very familiar with shaka-player's source code, after a few investigation I feel this change (#5696) might be the root cause. Also I'm not sure if it's an intentional change or a bug.

@z-cui-233 z-cui-233 added the type: bug Something isn't working correctly label Mar 21, 2024
@shaka-bot shaka-bot added this to the v5.0 milestone Mar 21, 2024
@avelad avelad added the priority: P1 Big impact or workaround impractical; resolve before feature release label Apr 2, 2024
@Iragne
Copy link
Contributor

Iragne commented Apr 9, 2024

if i'm not wrong the rebufferingGoal is only apply with manifest.dash.ignoreMinBufferTime <= true

@z-cui-233
Copy link
Author

@Iragne By reading the code(1, 2), I think it only happens when rebufferingGoal is less than minBufferTime. The value of max(config.rebufferingGoal, manifest.minBufferTime) is supposed to be respected when shaka-player handles the play -> pause(for buffering) -> play(after has enough buffer) thing.

@Iragne
Copy link
Contributor

Iragne commented Apr 9, 2024

Hum need more attention agree.

@Iragne
Copy link
Contributor

Iragne commented Apr 10, 2024

Thanks I clearly found the issue of the rate control and the buffering state.
I'm checking now the impact of it

@Iragne
Copy link
Contributor

Iragne commented Apr 10, 2024

here the first proposed solution but still in draft #6433

Iragne added a commit to Iragne/shaka-player that referenced this issue Apr 11, 2024
@avelad avelad modified the milestones: v4.8, v4.9 Apr 26, 2024
avelad pushed a commit that referenced this issue May 6, 2024
avelad pushed a commit that referenced this issue May 6, 2024
joeyparrish added a commit to joeyparrish/shaka-player that referenced this issue May 7, 2024
Fixes these failures on Tizen:

Player
    rebufferGoal
      ✗ state orchestration and buffer length [Safari 3.0 (Tizen 3.0)]
  Player Src Equals
    ✗ can control trick play rate [Safari 3.0 (Tizen 3.0)]

This was not in any releases.

Reverts "fix: reBufferingGoal is not respected (shaka-project#6433)"

This reverts commit 99ed5db.

Reopens shaka-project#6355
@joeyparrish joeyparrish reopened this May 7, 2024
@joeyparrish
Copy link
Member

Fix reverted by #6540, reopening

joeyparrish added a commit that referenced this issue May 7, 2024
Fixes these failures on Tizen:

Player
    rebufferGoal
      ✗ state orchestration and buffer length [Safari 3.0 (Tizen 3.0)]
  Player Src Equals
    ✗ can control trick play rate [Safari 3.0 (Tizen 3.0)]

This was not in any releases.

Reverts "fix: reBufferingGoal is not respected (#6433)"

This reverts commit 99ed5db.

Reopens #6355
joeyparrish added a commit that referenced this issue May 7, 2024
Fixes these failures on Tizen:

Player
    rebufferGoal
      ✗ state orchestration and buffer length [Safari 3.0 (Tizen 3.0)]
  Player Src Equals
    ✗ can control trick play rate [Safari 3.0 (Tizen 3.0)]

This was not in any releases.

Reverts "fix: reBufferingGoal is not respected (#6433)"

This reverts commit 99ed5db.

Reopens #6355
joeyparrish added a commit that referenced this issue May 7, 2024
Fixes these failures on Tizen:

Player
    rebufferGoal
      ✗ state orchestration and buffer length [Safari 3.0 (Tizen 3.0)]
  Player Src Equals
    ✗ can control trick play rate [Safari 3.0 (Tizen 3.0)]

This was not in any releases.

Reverts "fix: reBufferingGoal is not respected (#6433)"

This reverts commit 99ed5db.

Reopens #6355
joeyparrish added a commit that referenced this issue May 7, 2024
Fixes these failures on Tizen:

Player
    rebufferGoal
      ✗ state orchestration and buffer length [Safari 3.0 (Tizen 3.0)]
  Player Src Equals
    ✗ can control trick play rate [Safari 3.0 (Tizen 3.0)]

This was not in any releases.

Reverts "fix: reBufferingGoal is not respected (#6433)"

This reverts commit 99ed5db.

Reopens #6355
@avelad avelad closed this as completed in 8232c60 May 8, 2024
avelad added a commit that referenced this issue May 8, 2024
@Iragne
Copy link
Contributor

Iragne commented May 8, 2024

@avelad I'm seeing your commit associated to reverting back to the previous code.
This code is not adding any test case for the player integration and i understand it cause the validation issue on Tizen.

Should we work on a more robust test scenario that is not breaking Tizen "sorry for that".

@avelad
Copy link
Member

avelad commented May 8, 2024

I'm happy to review you PR for it :)

@Iragne
Copy link
Contributor

Iragne commented May 8, 2024

Well happy to rework on it but happy to make sure i can properly test tizen.
How i should do because Tizen is not part of the ./all.py tests and i don't want to re impact Tizen and CI/CD

joeyparrish pushed a commit that referenced this issue May 31, 2024
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jul 7, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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
5 participants