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

[media] Add H5vcc API to set video buffer budget #4193

Open
wants to merge 5 commits into
base: 25.lts.1+
Choose a base branch
from

Conversation

osagie98
Copy link
Contributor

@osagie98 osagie98 commented Oct 2, 2024

  1. Adds a new H5vcc setting "Media.VideoBufferBudget". Calling h5vcc.settings.set("VideoBufferBudget", [value]) overrides the return value of DecoderBufferAllocator::GetVideoBufferBudget(). The value doesn't change for any playback until h5vcc.settings.set("VideoBufferBudget", [value]) is called again. When the value is set to 0, DecoderBufferAllocator::GetVideoBufferBudget() will revert to using the return value of SbMediaGetVideoBufferBudget().
  2. Adds a DecoderBufferAllocator method SetVideoBufferBudget(), along with tests.

b/368717847

The H5vcc API `h5vcc.settings.set("VideoBufferBudget", [value])` will
override the return value of SbMediaGetVideoBufferBudget() in the
DecoderBufferAllocator. When |value| is set to 0, the
DecoderBufferAllocator will revert to using the return value of
SbMediaGetVideoBufferBudget().

b/368717847
@osagie98 osagie98 marked this pull request as ready for review October 4, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant