How to disable Accessibilty Menu in Default Layout ? #1423
-
I am trying to customize the I use the Default Layout Here’s the code I’ve used so far to remove the loop button, but I also want to remove the Accessibility option: <MediaPlayer
src={videoUrl}
onProviderChange={onProviderChange}
ref={playerRef}
className=''
>
<MediaProvider />
<DefaultVideoLayout
slots={{
beforePlayButton: (
<>
<div className="vds-controls-spacer min-[578px]:hidden"></div>
<button onClick={handlePreviousVideo} className='vds-button vds-play-button'>
<PreviousIcon size={32} />
</button>
<div className="vds-controls-spacer min-[578px]:hidden"></div>
</>
),
afterPlayButton: (
<>
<div className="vds-controls-spacer min-[578px]:hidden"></div>
<button onClick={handleNextVideo} className='vds-button vds-play-button'>
<NextIcon size={32} />
</button>
<div className="vds-controls-spacer min-[578px]:hidden"></div>
</>
),
playbackMenuLoop: null,
accessibilityMenuItemsStart: null,
accessibilityMenuItemsEnd: null,
}}
icons={defaultLayoutIcons}
/>
<Poster
className="vds-poster"
src={thumbnail}
alt=""
/>
</MediaPlayer> The |
Beta Was this translation helpful? Give feedback.
Answered by
mihar-22
Sep 6, 2024
Replies: 1 comment 1 reply
-
You can use CSS: .vds-accessibility-menu {
display: none !important;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
usernameisnotavailablechooseanother
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use CSS: