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

Limit video-resolution to current container-size #2770

Closed
Wuschba opened this issue Aug 5, 2020 · 1 comment
Closed

Limit video-resolution to current container-size #2770

Wuschba opened this issue Aug 5, 2020 · 1 comment
Assignees
Labels
status: archived Archived and locked; will not be updated status: duplicate A duplicate of another issue; should be closed after linking to the original issue

Comments

@Wuschba
Copy link

Wuschba commented Aug 5, 2020

Have you read the Tutorials?
Yes.

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

What version of Shaka Player are you using?
3.0.2

Please ask your question
I have a video rendered in different resolutions (1200x900, 800x600, 400x300, 200x150) and a DASH-manifest. I'm embedding the video on a responsive webpage using the shaka-player. This works so far, but the video displayed is depending more on the bandwidth than the size of the container which is playing in, for example:

Container size: 800x600, low bandwidth -> Playing the video 200x150 -> Ok
Container size: 1200x900, high bandwidth -> Playing the video 1200x900 -> Ok
Container size: 200x150, high bandwidth -> Playing the video 1200x900 -> Not ok, because it's not necessary

I want to prevent the last case because it increases my traffic and on some devices/browsers/setups the downscaling of the video is really horrible (because of the device/browser/setup, not because of shaka).

How can I limit the size of the played video to the size of the container the video-player is in?

@Wuschba Wuschba added the type: question A question from the community label Aug 5, 2020
@Wuschba Wuschba changed the title Limit video-resolution to current container-site Limit video-resolution to current container-size Aug 5, 2020
@TheModMaker
Copy link
Contributor

Duplicate of #2333. For now you can use abr.restrictions.maxWidth and abr.restrictions.maxHeight configurations to limit the ABR sizes chosen.

@TheModMaker TheModMaker added status: duplicate A duplicate of another issue; should be closed after linking to the original issue and removed type: question A question from the community labels Aug 5, 2020
@TheModMaker TheModMaker self-assigned this Aug 19, 2020
@shaka-project shaka-project locked and limited conversation to collaborators Oct 13, 2020
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated status: duplicate A duplicate of another issue; should be closed after linking to the original issue
Projects
None yet
Development

No branches or pull requests

3 participants