question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checklist

  • [yes] Verified whether your issue exists in the latest version Mux Element(s) release: npm install @mux/[element_name] or yarn @mux/[element_name].
    • (NOTE: If the issue is not occurring in the latest version, we may not resolve it.)
  • [yes] Confirmed that this issue hasn’t already been filed.

Which Mux Elements/Packages has a bug?

  • mux-player

Which browser(s) are you using?

  • Chrome
  • Safari
  • Firefox
  • Edge (“Edgeium”)
  • Chrome Android
  • Safari on iOS

Which operating system(s) are you using?

  • macOs
  • IOS
  • Android

How are you using Mux Elements?

  • npm package

Describe the bug

controlslist property/attribute doesn’t work. I’m trying to hide all controllers from the player using the controlslist attribute but nothing gets hidden. Also no luck using the css mux-player::part selectors.

Steps To Reproduce

  1. Spin up a mux player instance
  2. Add controlslist attributes as specified in the docs
  3. Observe that it has no effect

Link to code example:

https://docs.mux.com/guides/video/mux-player

try adding the controlslist attribute to any example player and see that it doesn’t have any effect.

The current behavior

All controllers appear regardless of controlslist or css updates

The expected behavior

controlslist should hide the controllers listed in that attribute

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
luwescommented, Sep 15, 2022

@Tenkir good call, we’ll discuss if this should be parts of that CSS var.

in the mean time disable the controls backdrop with this CSS.

      mux-player::part(vertical-layer) {
        background-color: transparent;
      }

thanks for the feedback!

1reaction
Tenkircommented, Sep 15, 2022

In beta.27 it’s possible to hide all controls with CSS vars.

See https://elements-demo-nextjs-40kcft3mv-mux.vercel.app/MuxPlayer https://github.com/muxinc/elements/tree/main/packages/mux-player#hiding-controls

This is still darkening the player when hovering.

mux-player {
  --controls: none;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Hiding vs Disabling Controls - GitHub Pages
When you're hiding controls based on the value of another control, always place the hidden control somewhere below the control that triggers the...
Read more >
Hiding controls - IBM
Hiding controls. Use AccessStudio to create an AccessProfile that automates a task, such as removing or hiding a user interface control element.
Read more >
HTML5 Video // Completely Hide Controls - Stack Overflow
Is it possible to dynamically show/hide any of these individual controls. For example: apply css video::-webkit-media-controls-current-time- ...
Read more >
Hiding Front Panel Controls and Indicators - NI
Complete the following steps to hide a front panel control or indicator. You also can display hidden front panel objects.
Read more >
Hiding controls on screen - Minecraft Education Edition
Is there a way to hide the controls that appear on the left side of the screen without hiding the entire HUD using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found