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

How to modified quality labels name #8027

Closed
prveen2000 opened this issue Feb 6, 2025 · 2 comments
Closed

How to modified quality labels name #8027

prveen2000 opened this issue Feb 6, 2025 · 2 comments
Labels
type: question A question from the community

Comments

@prveen2000
Copy link

Have you read the Tutorials?
yes

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

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

not

What version of Shaka Player are you using?
4.13.1

What browser and OS are you using?
chrome

Please ask your question
how to modified resolution name in quality setting

My player configuration

const defaultConfig = {
    controlPanelElements: [
        "play_pause",
        "time_and_duration",
        "spacer",
        "spacer",
        "volume",
        "mute",
        "quality",
        "overflow_menu",
        "picture_in_picture",
        "fullscreen",
    ],
    overflowMenuButtons: ["quality", "captions", "language"],
    enableTooltips: true,
};

player.configure({
    abr: { enabled: true },
});

ui.configure(defaultConfig);

I want this

Image

Then player show this

Image

function getQualityLabel(height) {
if (height < 720) return height+"p SD";
if (height === 720) return height + "p HD";
if (height === 1080) return "Full HD";
if (height === 2160) return "4K";
return height + "p";
}

@prveen2000 prveen2000 added the type: question A question from the community label Feb 6, 2025
@avelad
Copy link
Member

avelad commented Feb 6, 2025

Currently you can't customize it with configuration, the only thing you can do is create a custom resolution component... sorry!

@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Feb 6, 2025
@prveen2000
Copy link
Author

Thank you for your response

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question A question from the community
Projects
None yet
Development

No branches or pull requests

3 participants