-
Beta Was this translation helpful? Give feedback.
Answered by
luwes
Jun 21, 2024
Replies: 2 comments
-
yes, this is possible. const renditionMenus = document.querySelectorAll('media-rendition-menu');
for (const renditionMenu of renditionMenus) {
renditionMenu.formatMenuItemText = (text, rendition) => {
console.log(text, rendition);
return text.replace('1080p', '1080p (HD)');
}
} see an example here https://media-chrome.mux.dev/examples/vanilla/control-elements/media-rendition-menu.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
luwes
-
Works for me, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, this is possible.
see an example here https://media-chrome.mux.dev/examples/vanilla/control-elements/media-rendition-menu.html