vidstack / player

UI components and hooks for building video/audio players on the web. Robust, customizable, and accessible. Modern alternative to JW Player and Video.js.
https://vidstack.io
MIT License
2.15k stars 126 forks source link

How to hide menu button in default layout? #1233

Closed DamianGlowala closed 5 months ago

DamianGlowala commented 6 months ago

Given the following Vue template:

<template>
    <media-player
        :src="src"
        playsinline
    >
        <media-provider />

        <media-video-layout />
    </media-player>
</template>

... how to entirely remove the following button?

image

I feel like there isn't much room for flexibility/composability at the moment, unless I missed relevant sections in the docs which describe how to achieve this. Thank you!

mihar-22 commented 5 months ago

Hey Damian! This is not really an issue, please open questions in discussions or Discord :) You can hide it using CSS or you can opt to create your own layout (see our examples). There's tons of flexibility in our library, but unfortunately we don't have slots for our Web Component library yet like we do for React (add/replace existing content in our layout).

.vds-settings-menu {
  display: none;
}

Also note our menus don't render anything when not open so there's no performance issue for leaving it.